主题 : 梅西 世界上最伟大的球员(Lionel.Messi.Worlds.Greatest.Player)1080i高清 itv英语 3.47G【迅雷】
级别: 替补球员
0  发表于: 2012-05-22 09:54

梅西 世界上最伟大的球员(Lionel.Messi.Worlds.Greatest.Player)1080i高清 itv英语 3.47G【迅雷】

管理提醒: 本帖被 qq51099008 执行加亮操作(2012-05-22)
---视频信息---
片名:Lionel Messi Worlds Greatest Player
频道:itv 4HD
语言:英语
时长:00:47:00
大小:3.47 GB
视频码率:9.6 Mbps  
视频帧率:25 fps
分辨率:1920x1080
音频编码:AC3
音频码率:384 kbps
声道数:2 channels
By:ivanTG




下载地址:
本部分内容设定了隐藏,需要回复后才能看到
[ 此帖被qq51099008在2012-05-24 18:24重新编辑 ]
1280*720
级别: 替补球员
1  发表于: 2012-05-30 17:55

private void Generate_Btn_Click(object sender, EventArgs e)               //生成最终全局信任值
        {
            int m, n, CalTime = 0; ;
            double TrustTmp;
            do
            {
                for (m = 0; m < PeersCount; m++)
                {
                    OldGlobalTrust[m] = GlobalTrust[m];
                    ((Peers)PeersList[m]).PeersTrustAdjust();
                }
                for (m = 0; m < PeersCount; m++)                                  //迭代计算、矩阵相乘
                {
                    TrustTmp = 0;
                    for (n = 0; n < PeersCount; n++)
                    {
                        double add1 = ((Peers)PeersList[n]).GetTrustValue(m);
                        double add2 = Convert.ToDouble(OldGlobalTrust[n]);
                        TrustTmp += add1 * add2;

                    }
                    GlobalTrust[m] = Math.Round(TrustTmp,3);
                }
                CalTime++;
            } while (!IfInterationOver()&&CalTime<50);
            if (!OverFlag)
            {
                MessageBox.Show("Interation is over");
            }
            else
            {
                MessageBox.Show("Running overtime!");
            }
        }

        private bool IfInterationOver()                                            //判断迭代是否结束,收敛条件是两次计算信任值差值的绝对值小于0.001
        {          
            for (int i = 0; i < PeersCount; i++)
            {
                if (Math.Abs(Convert.ToDouble(GlobalTrust) - Convert.ToDouble(OldGlobalTrust)) > 0.001)
                    OverFlag = false;
            }
            return OverFlag;
        }
    }
}