MOEA Framework 2.12
API Specification

org.moeaframework.util.statistics
Class RankedObservation

java.lang.Object
  extended by org.moeaframework.util.statistics.Observation
      extended by 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 Summary
RankedObservation(double value, int group)
          Constructs a ranked observation with the specified value and group.
 
Method Summary
 double getRank()
          Returns the rank of this observation.
 void setRank(double rank)
          Sets the rank of this observation.
 
Methods inherited from class org.moeaframework.util.statistics.Observation
getGroup, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!