Class Observation
java.lang.Object
org.moeaframework.util.statistics.Observation
- Direct Known Subclasses:
RankedObservation
Stores an observed value and the group from which the observation belongs.
-
Constructor Summary
ConstructorDescriptionObservation
(double value, int group) Constructs an observation with the specified value and group. -
Method Summary
-
Constructor Details
-
Observation
public Observation(double value, int group) Constructs an observation with the specified value and group.- Parameters:
value
- the value of this observationgroup
- the group from which this observation belongs
-
-
Method Details
-
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
-