small fixes

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1484954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-05-21 20:55:58 +00:00
parent 4be687e19d
commit 03df648a2d
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ public class ClusteringExamples {
}
int[] nSamplesPerCenter = new int[centers];
int count = (samples / centers) * centers;
int count = samples / centers;
Arrays.fill(nSamplesPerCenter, count);
for (int i = 0; i < samples % centers; i++) {
@ -288,7 +288,7 @@ public class ClusteringExamples {
}
g2.setPaint(Color.black);
g2.drawString(String.format("%.2f s", duration / 1e3), w - 30, h - 5);
g2.drawString(String.format("%.2f s", duration / 1e3), w - 40, h - 5);
}
@Override