|
MOEA Framework 2.12 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
public abstract class OrdinalStatisticalTest
Abstract class for implementing ordinal (rank-based) statistical tests.
Methods are provided for storing RankedObservation
objects and
updating their ranks.
Field Summary | |
---|---|
protected Comparator<RankedObservation> |
comparator
The comparator used for ordering observations. |
protected List<RankedObservation> |
data
Collection of all ranked observations added to this test. |
protected int |
numberOfGroups
The number of groups being tested. |
Constructor Summary | |
---|---|
OrdinalStatisticalTest(int numberOfGroups)
Constructs a new ordinal (rank-based) statistical test for the specified number of groups. |
|
OrdinalStatisticalTest(int numberOfGroups,
Comparator<RankedObservation> comparator)
Constructs a new ordinal (rank-based) statistical test for the specified number of groups and the comparator for ordering observations. |
Method Summary | |
---|---|
protected void |
add(double value,
int group)
Adds a new observation with the specified value and group. |
protected void |
addAll(double[] values,
int group)
Adds several new observations to the specified group. |
Comparator<RankedObservation> |
getComparator()
Returns the comparator used by this test to order observations. |
int |
getNumberOfGroups()
Returns the number of groups being tested. |
int |
size()
Returns the number of observations used in this test. |
protected void |
update()
Sorts the observations using the comparator and assigns ranks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.moeaframework.util.statistics.StatisticalTest |
---|
test |
Field Detail |
---|
protected final int numberOfGroups
protected final Comparator<RankedObservation> comparator
protected final List<RankedObservation> data
Constructor Detail |
---|
public OrdinalStatisticalTest(int numberOfGroups)
numberOfGroups
- the number of groups being testedpublic OrdinalStatisticalTest(int numberOfGroups, Comparator<RankedObservation> comparator)
numberOfGroups
- the number of groups being testedcomparator
- the comparator for ordering observationsMethod Detail |
---|
protected void add(double value, int group)
value
- the value of the new observationgroup
- the group to which the new observation belongsprotected void addAll(double[] values, int group)
values
- the values of the new observationsgroup
- the group to which the new observations belongprotected void update()
comparator
and assigns ranks.
public int size()
public int getNumberOfGroups()
public Comparator<RankedObservation> getComparator()
|
MOEA Framework 2.12 API Specification |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |