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
This commit is contained in:
Phil Steitz 2012-05-28 19:31:54 +00:00
parent 3246e6a84b
commit dc4dfa3b70
1 changed files with 2 additions and 19 deletions

View File

@ -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)%