static public void GenerateOneTreeForAllResult()
 {
     Initialize();
     for (int time = 1; time <= Variable.ConvergeTimeThreshold; ++time)
     {
         //计算Pk
         TDDSVariable.Pj = CoreFunction.CalculatePj(TDDSVariable.Sij, time);
         //计算π
         NoGroupDDSFunction.CalculatePAkjl(TDDSVariable.Sij, ref TDDSVariable.PAkjl);
         //计算Sij
         if (NoGroupDDSFunction.CalculatePdataAndSij(ref TDDSVariable.Sij, TDDSVariable.Pj, TDDSVariable.PAkjl, ref TDDSVariable.Pdata))
         {
             break;
         }
     }
     NoGroupDDSFunction.ObtainResult(TDDSVariable.Sij, "TreeForAll");
 }
Exemplo n.º 2
0
 static public void GeneratePreciseResult()
 {
     Initialize();
     for (int time = 1; time <= Variable.ConvergeTimeThreshold; ++time)
     {
         //计算Pk
         NoGroupJDDSVariable.Pj = CoreFunction.CalculatePj(NoGroupJDDSVariable.Sij, time);
         //计算π
         NoGroupDDSFunction.CalculatePAkjl(NoGroupJDDSVariable.Sij, ref NoGroupJDDSVariable.PAkjl);
         //计算Sij
         if (NoGroupDDSFunction.CalculatePdataAndSij(ref NoGroupJDDSVariable.Sij, NoGroupJDDSVariable.Pj, NoGroupJDDSVariable.PAkjl, ref NoGroupJDDSVariable.Pdata))
         {
             break;
         }
     }
     NoGroupDDSFunction.ObtainResult(NoGroupJDDSVariable.Sij, "Precise");
 }
Exemplo n.º 3
0
 static public void GenerateOneTreeForSenResult()
 {
     Initialize();
     for (int time = 1; time <= Variable.ConvergeTimeThreshold; ++time)//其中几个函数可以和Dependent公用
     {
         //计算Pk
         DTDDSVariable.Pj = CoreFunction.CalculatePj(DTDDSVariable.Sij, time);
         //计算π
         NoGroupDDSFunction.CalculatePAkjl(DTDDSVariable.Sij, ref DTDDSVariable.PAkjl);
         //计算Sij
         if (NoGroupDDSFunction.CalculatePdataAndSij(ref DTDDSVariable.Sij, DTDDSVariable.Pj, DTDDSVariable.PAkjl, ref DTDDSVariable.Pdata))
         {
             break;
         }
     }
     NoGroupDDSFunction.ObtainResult(DTDDSVariable.Sij, "TreeForSen");
 }