From dc4dfa3b70bcde117f5afc7a36bcbcb05460a965 Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Mon, 28 May 2012 19:31:54 +0000 Subject: [PATCH] Improved javadoc, eliminated unused (and unlikely to ever be used) method. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343370 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math3/TestUtils.java | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/test/java/org/apache/commons/math3/TestUtils.java b/src/test/java/org/apache/commons/math3/TestUtils.java index 706674f58..88822e18d 100644 --- a/src/test/java/org/apache/commons/math3/TestUtils.java +++ b/src/test/java/org/apache/commons/math3/TestUtils.java @@ -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 @@ -401,23 +401,6 @@ public class TestUtils { 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 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)%