double min = Double.MAX_VALUE;
double sum = 0;
int count = 0;
for (int i = 0; i < clusters.size(); i++) {
for (int j = i + 1; j < clusters.size(); j++) {
double d = measure.distance(clusters.get(i)
.getCenter(), clusters.get(j).getCenter());
min = Math.min(d, min);
max = Math.max(d, max);
sum += d;
count++;