Class RankedObservation

java.lang.Object
org.moeaframework.util.statistics.Observation
org.moeaframework.util.statistics.RankedObservation

public class RankedObservation extends Observation
An observation with a rank. Rank-based statistics use this type of observation to manage ranks.
  • 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 observation
      group - 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