Author: tn Date: Tue May 21 20:55:58 2013 New Revision: 1484954 URL: http://svn.apache.org/r1484954 Log: small fixes
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/userguide/ClusteringExamples.java Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/userguide/ClusteringExamples.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/userguide/ClusteringExamples.java?rev=1484954&r1=1484953&r2=1484954&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/userguide/ClusteringExamples.java (original) +++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/userguide/ClusteringExamples.java Tue May 21 20:55:58 2013 @@ -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