MOEA Framework 2.1
API Specification

org.moeaframework.util.statistics
Class Observation

java.lang.Object
  extended by org.moeaframework.util.statistics.Observation
Direct Known Subclasses:
RankedObservation

public class Observation
extends Object

Stores an observed value and the group from which the observation belongs.


Constructor Summary
Observation(double value, int group)
          Constructs an observation with the specified value and group.
 
Method Summary
 int getGroup()
          Returns the group from which this observation belongs.
 double getValue()
          Returns the value of this observation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Observation

public Observation(double value,
                   int group)
Constructs an observation with the specified value and group.

Parameters:
value - the value of this observation
group - the group from which this observation belongs
Method Detail

getValue

public double getValue()
Returns the value of this observation.

Returns:
the value of this observation

getGroup

public int getGroup()
Returns the group from which this observation belongs.

Returns:
the group from which this observation belongs

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