MOEA Framework 2.1
API Specification

org.moeaframework.util.statistics
Class IntervalRatioStatisticalTest

java.lang.Object
  extended by org.moeaframework.util.statistics.IntervalRatioStatisticalTest
All Implemented Interfaces:
StatisticalTest
Direct Known Subclasses:
OneWayANOVA, SingleSampleTTest, TwoSampleTTest

public abstract class IntervalRatioStatisticalTest
extends Object
implements StatisticalTest

Abstract class for interval ratio statistical tests.


Field Summary
protected  List<Observation> data
          Collection of all observations added to this test.
protected  int numberOfGroups
          The number of groups being tested.
 
Constructor Summary
IntervalRatioStatisticalTest(int numberOfGroups)
          Constructs an interval ratio statistical test with the specified number of groups.
 
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.
protected  List<double[]> categorize()
          Organizes the observations by their group.
 int getNumberOfGroups()
          Returns the number of groups being tested.
 
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

numberOfGroups

protected final int numberOfGroups
The number of groups being tested.


data

protected final List<Observation> data
Collection of all observations added to this test.

Constructor Detail

IntervalRatioStatisticalTest

public IntervalRatioStatisticalTest(int numberOfGroups)
Constructs an interval ratio statistical test with the specified number of groups.

Parameters:
numberOfGroups - the number of groups being tested
Method Detail

add

protected void add(double value,
                   int group)
Adds a new observation with the specified value and group.

Parameters:
value - the value of the new observation
group - the group to which the new observation belongs

addAll

protected void addAll(double[] values,
                      int group)
Adds several new observations to the specified group.

Parameters:
values - the values of the new observations
group - the group to which the new observations belong

categorize

protected List<double[]> categorize()
Organizes the observations by their group.

Returns:
a list containing the vectorized values observed for each group

getNumberOfGroups

public int getNumberOfGroups()
Returns the number of groups being tested.

Returns:
the number of groups being tested

MOEA Framework 2.1
API Specification

Copyright 2009-2014 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Hosted by Get MOEA Framework at SourceForge.net. Fast, secure and Free Open Source software downloads