|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.util.statistics.OrdinalStatisticalTest
org.moeaframework.util.statistics.WilcoxonSignedRanksTest
public class WilcoxonSignedRanksTest
The Wilcoxon Signed-Ranks test determines if the population median is equal to a specified value.
Assumptions:
References:
| Field Summary |
|---|
| Fields inherited from class org.moeaframework.util.statistics.OrdinalStatisticalTest |
|---|
comparator, data, numberOfGroups |
| Constructor Summary | |
|---|---|
WilcoxonSignedRanksTest(double median)
Constructs a Wilcoxon signed ranks test with the specified median. |
|
| Method Summary | |
|---|---|
void |
add(double value)
Adds a new observation with the specified value. |
void |
add(double[] values)
Adds several new observations with the specified values. |
double |
getMedian()
Returns the value being tested against the population median. |
boolean |
test(double alpha)
Returns true if the null hypothesis is rejected; false
otherwise. |
| Methods inherited from class org.moeaframework.util.statistics.OrdinalStatisticalTest |
|---|
add, addAll, getComparator, getNumberOfGroups, size, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WilcoxonSignedRanksTest(double median)
median - the value being tested against the population median| Method Detail |
|---|
public double getMedian()
public void add(double value)
value - the value of the new observationpublic void add(double[] values)
values - the values of the new observationspublic boolean test(double alpha)
true if the null hypothesis is rejected; false
otherwise. The meaning of the null hypothesis and alternative hypothesis
depends on the specific test.
The prespecified level of confidence, alpha, can be used for either one-tailed or two-tailed (directional or nondirectional) distributions, depending on the specific test. Some tests may only support specific values for alpha.
When the samples from both populations are less than 20, only alpha values of 0.05 and 0.01 are valid. This is because a table is used to accurately determine the critical values. When more than 20 samples are available, the normal approximation is used allowing any value for alpha.
alpha - the prespecified level of confidence
true if the null hypothesis is rejected; false
otherwise
IllegalArgumentException - if an insufficient sampling size is
provided, or if an invalid alpha value is provided
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||