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:
parent
3246e6a84b
commit
dc4dfa3b70
|
@ -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)%
|
||||
|
|
Loading…
Reference in New Issue