You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2012/05/28 21:31:54 UTC

svn commit: r1343370 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java

Author: psteitz
Date: Mon May 28 19:31:54 2012
New Revision: 1343370

URL: http://svn.apache.org/viewvc?rev=1343370&view=rev
Log:
Improved javadoc, eliminated unused (and unlikely to ever be used) method.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java?rev=1343370&r1=1343369&r2=1343370&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/TestUtils.java Mon May 28 19:31:54 2012
@@ -350,7 +350,7 @@ public class TestUtils {
      * Asserts the null hypothesis for a ChiSquare test.  Fails and dumps arguments and test
      * statistics if the null hypothesis can be rejected with confidence 100 * (1 - alpha)%
      * 
-     * @param valueLabels
+     * @param valueLabels labels for the values of the discrete distribution under test
      * @param expected expected counts
      * @param observed observed counts
      * @param alpha significance level of the test
@@ -388,7 +388,7 @@ public class TestUtils {
      * Asserts the null hypothesis for a ChiSquare test.  Fails and dumps arguments and test
      * statistics if the null hypothesis can be rejected with confidence 100 * (1 - alpha)%
      * 
-     * @param values
+     * @param values integer values whose observed and expected counts are being compared
      * @param expected expected counts
      * @param observed observed counts
      * @param alpha significance level of the test
@@ -405,23 +405,6 @@ public class TestUtils {
      * Asserts the null hypothesis for a ChiSquare test.  Fails and dumps arguments and test
      * statistics if the null hypothesis can be rejected with confidence 100 * (1 - alpha)%
      * 
-     * @param values
-     * @param expected expected counts
-     * @param observed observed counts
-     * @param alpha significance level of the test
-     */
-    public static void assertChiSquareAccept(double[] values, double[] expected, long[] observed, double alpha) throws Exception {
-        String[] labels = new String[values.length];
-        for (int i = 0; i < values.length; i++) {
-            labels[i] = Double.toString(values[i]);
-        }
-        assertChiSquareAccept(labels, expected, observed, alpha);
-    }
-    
-    /**
-     * Asserts the null hypothesis for a ChiSquare test.  Fails and dumps arguments and test
-     * statistics if the null hypothesis can be rejected with confidence 100 * (1 - alpha)%
-     * 
      * @param expected expected counts
      * @param observed observed counts
      * @param alpha significance level of the test