// Verify that each corner of the cube has a centroid very nearby.
// This is probably FALSE for large-dimensional spaces!
OnlineSummarizer summarizer = new OnlineSummarizer();
for (Vector mean : syntheticData.getSecond()) {
WeightedThing<Vector> v = searcher.search(mean, 1).get(0);
summarizer.add(v.getWeight());
}
assertTrue(String.format("Median weight [%f] too large [>%f]", summarizer.getMedian(),
DISTRIBUTION_RADIUS), summarizer.getMedian() < DISTRIBUTION_RADIUS);