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:
parent
4be687e19d
commit
03df648a2d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue