|
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.IntervalRatioStatisticalTest
org.moeaframework.util.statistics.TwoSampleTTest
public class TwoSampleTTest
The Two-Sample t test determines if the mean of two populations are different. The independent flag in the constructor is used to choose between the unpaired (independent) and paired (dependent) test.
Assumptions:
References:
| Field Summary |
|---|
| Fields inherited from class org.moeaframework.util.statistics.IntervalRatioStatisticalTest |
|---|
data, numberOfGroups |
| Constructor Summary | |
|---|---|
TwoSampleTTest(boolean independent)
Constructs a two sample T test. |
|
| Method Summary | |
|---|---|
void |
add(double value,
int group)
Adds a new observation with the specified value and group. |
void |
addAll(double[] values,
int group)
Adds several new observations to the specified group. |
boolean |
test(double alpha)
Returns true if the null hypothesis is rejected; false
otherwise. |
| Methods inherited from class org.moeaframework.util.statistics.IntervalRatioStatisticalTest |
|---|
categorize, getNumberOfGroups |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TwoSampleTTest(boolean independent)
independent - uses the unpaired T test if true; the paired T
test if false| Method Detail |
|---|
public void add(double value,
int group)
IntervalRatioStatisticalTest
add in class IntervalRatioStatisticalTestvalue - the value of the new observationgroup - the group to which the new observation belongs
public void addAll(double[] values,
int group)
IntervalRatioStatisticalTest
addAll in class IntervalRatioStatisticalTestvalues - the values of the new observationsgroup - the group to which the new observations belongpublic 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.
alpha - the prespecified level of confidence
true if the null hypothesis is rejected; false
otherwiseTestUtils.tTest(double[], double[], double),
TestUtils.pairedTTest(double[], double[], double)
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||