Class Observation

java.lang.Object
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

    Constructors
    Constructor
    Description
    Observation(double value, int group)
    Constructs an observation with the specified value and group.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the group from which this observation belongs.
    double
    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 Details

    • 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 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