public void RingTest2() { var clusters = DBSCANRBush.CalculateClusters( DbscanTestData.RingDataset, 1.01, 4); Assert.Equal(12, clusters.Clusters.Count); Assert.Equal(45, clusters.UnclusteredObjects.Count); }
public void BorderTest2() { var clusters = DBSCANRBush.CalculateClusters( DbscanTestData.Borders, 2.0, 3); Assert.Equal(1, clusters.Clusters.Count); Assert.Equal(0, clusters.UnclusteredObjects.Count); Assert.Equal(9, clusters.Clusters[0].Objects.Count); }
public void BorderTest1() { var clusters = DBSCANRBush.CalculateClusters( DbscanTestData.Borders, 1.0, 4); Assert.Equal(2, clusters.Clusters.Count); Assert.Equal(1, clusters.UnclusteredObjects.Count); Assert.Equal(DbscanTestData.Borders[0], clusters.UnclusteredObjects[0]); Assert.Equal(4, clusters.Clusters[0].Objects.Count); Assert.Equal(4, clusters.Clusters[1].Objects.Count); }