Class RankedObservation
java.lang.Object
org.moeaframework.util.statistics.Observation
org.moeaframework.util.statistics.RankedObservation
An observation with a rank. Rank-based statistics use this type of observation to manage ranks.
-
Constructor Summary
ConstructorDescriptionRankedObservation
(double value, int group) Constructs a ranked observation with the specified value and group. -
Method Summary
Methods inherited from class org.moeaframework.util.statistics.Observation
getGroup, getValue
-
Constructor Details
-
RankedObservation
public RankedObservation(double value, int group) Constructs a ranked observation with the specified value and group. The rank of this observation is default to 0.0.- Parameters:
value
- the value of this observationgroup
- the group from which this observation belongs
-
-
Method Details
-
getRank
public double getRank()Returns the rank of this observation.- Returns:
- the rank of this observation
-
setRank
public void setRank(double rank) Sets the rank of this observation.- Parameters:
rank
- the new rank for this observation
-