@Test
public void testAlmostSameValueCluster() throws IOException {
ClusteringTestUtils.writePointsToFile(referenceData, getTestTempFilePath("testdata/file1"), fs, conf);
DistanceMeasure measure = new EuclideanDistanceMeasure();
initData(1, 0.25, measure);
Canopy cluster = new Canopy(new DenseVector(new double[] {0, 0}), 19, measure);
clusters.add(cluster);
List<VectorWritable> points = Lists.newArrayList();
Vector delta = new DenseVector(new double[] {0, Double.MIN_NORMAL});
points.add(new VectorWritable(delta.clone()));
points.add(new VectorWritable(delta.clone()));
points.add(new VectorWritable(delta.clone()));
points.add(new VectorWritable(delta.clone()));
points.add(new VectorWritable(delta.clone()));
representativePoints.put(cluster.getId(), points);
CDbwEvaluator evaluator = new CDbwEvaluator(representativePoints, clusters, measure);
System.out.println("CDbw = " + evaluator.getCDbw());
System.out.println("Intra-cluster density = " + evaluator.intraClusterDensity());
System.out.println("Inter-cluster density = " + evaluator.interClusterDensity());
System.out.println("Separation = " + evaluator.separation());