for (VectorWritable v : SAMPLE_DATA) {
DisplayClustering.plotRectangle(g2, v.get(), dv);
}
int i = 0;
for (Cluster cluster : CLUSTERS.get(CLUSTERS.size() - 1)) {
MeanShiftCanopy canopy = (MeanShiftCanopy) cluster;
if (canopy.getMass() >= significance
* DisplayClustering.SAMPLE_DATA.size()) {
g2.setColor(COLORS[Math.min(i++, DisplayClustering.COLORS.length - 1)]);
int count = 0;
Vector center = new DenseVector(2);
for (int vix : canopy.getBoundPoints().toList()) {
Vector v = SAMPLE_DATA.get(vix).get();
count++;
center.assign(v, Functions.PLUS);
DisplayClustering.plotRectangle(g2, v, dv);
}