public void ClusterPairsTest4() { Start test = new Start(@"..\..\..\Data\IrisData.csv"); List <DataPoint> temp = test.GetDataPoints(); Linkage link = new Linkage(10, temp); link.CreateInitClusters(); link.CreateClusterPairs(); int num = link.GetClusterPairsCount(); Assert.AreEqual(num, 11175); }
public void ClusterPairsTest2() { Start test = new Start(@"..\..\..\Data\DistanceSample1D.csv"); List <DataPoint> temp = test.GetDataPoints(); Linkage link = new Linkage(10, temp); link.CreateInitClusters(); link.CreateClusterPairs(); int num = link.GetClusterPairsCount(); Assert.AreEqual(num, 6); }