public void GroupData()
 {
     if (view.GetAlgorythmName() == "AntTree")
     {
         antsList.ForEach(a =>
         {
             a.TDissim = GetDissim();
             a.TSim    = GetSim();
         });
         AntTree antTreeAlgorythm = new AntTree();
         antBranches = antTreeAlgorythm.AntTreeAlgorythm(antsList);
     }
     else
     {
         antBranches = Kmeans.KMeans(antsList, view.GetNumberGroups());
     }
 }
예제 #2
0
 public DunnIndex(List <AntBranch> antBranches)
 {
     antTree        = new AntTree();
     DunnIndexValue = TheBiggestSimilarInTheDifferenceBranchs(antBranches) / TheBiggestDifferenceInTheBranch(antBranches);
 }