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()); } }
public DunnIndex(List <AntBranch> antBranches) { antTree = new AntTree(); DunnIndexValue = TheBiggestSimilarInTheDifferenceBranchs(antBranches) / TheBiggestDifferenceInTheBranch(antBranches); }