|
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.SingleSampleTTest
public class SingleSampleTTest
The Single-Sample t test determines if the population's mean equals some specified value.
Assumptions:
References:
| Field Summary |
|---|
| Fields inherited from class org.moeaframework.util.statistics.IntervalRatioStatisticalTest |
|---|
data, numberOfGroups |
| Constructor Summary | |
|---|---|
SingleSampleTTest(double mean)
Constructs a single-sample T test with the specified mean. |
|
| Method Summary | |
|---|---|
void |
add(double value)
Adds a new observation with the specified value. |
void |
addAll(double[] values)
Adds several new observations with the specified values. |
double |
getMean()
Returns the value being tested against the population mean. |
boolean |
test(double alpha)
Returns true if the null hypothesis is rejected; false
otherwise. |
| Methods inherited from class org.moeaframework.util.statistics.IntervalRatioStatisticalTest |
|---|
add, addAll, categorize, getNumberOfGroups |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleSampleTTest(double mean)
mean - the value being tested against the population mean| Method Detail |
|---|
public double getMean()
public void add(double value)
value - the value of the new observationpublic void addAll(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.
alpha - the prespecified level of confidence
true if the null hypothesis is rejected; false
otherwiseTestUtils.tTest(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 | |||||