コード例 #1
0
ファイル: NetworkModel.cs プロジェクト: SunyDays/graduate
        private void ComputeStationaryPTC()
        {
            for (int i = 0; i < NodesCount; i++)
            {
                double sum = 0.0;
                for (int stream = 0; stream < StreamsCount; stream++)
                {
                    sum += RoBar[stream][i] / Mu[stream][i];
                }

                Ws.AddElement(sum / (1 - RoTotal[i]));
            }

            for (int stream = 0; stream < StreamsCount; stream++)
            {
                Us.Add(Ws.AddElementWise(Mu[stream].Pow(-1)));
                Ls.Add(LambdaBar[stream].MultiplyElementWise(Ws));
                Ns.Add(LambdaBar[stream].MultiplyElementWise(Us[stream]));
            }
        }