Пример #1
0
        public void CreateClustersTest1()
        {
            Start            test = new Start(@"..\..\..\Data\Sample1D.csv");
            List <DataPoint> temp = test.GetDataPoints();
            Linkage          link = new Linkage(10, temp);

            link.CreateInitClusters();
            int num = link.GetClustersCount();

            Assert.AreEqual(num, 6);
        }
Пример #2
0
        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);
        }