Package org.moeaframework.core.indicator
Class Indicators.IndicatorValues
java.lang.Object
org.moeaframework.core.indicator.Indicators.IndicatorValues
- All Implemented Interfaces:
Displayable
,Formattable<org.apache.commons.lang3.tuple.Pair<StandardIndicator,
Double>>
- Enclosing class:
- Indicators
public static class Indicators.IndicatorValues
extends Object
implements Formattable<org.apache.commons.lang3.tuple.Pair<StandardIndicator,Double>>
Collection of indicator results, with values defaulting to 0d/0d if not included.
-
Constructor Summary
ConstructorDescriptionIndicatorValues
(NondominatedPopulation approximationSet) Constructs a new indicator result object for the given approximation set. -
Method Summary
Modifier and TypeMethodDescriptionReturns the indicator values as a typed properties object.TabularData<org.apache.commons.lang3.tuple.Pair<StandardIndicator,
Double>> Returns the contents of this object as aTabularData
instance, which can be used to save, print, or format the data in various ways.double
get
(StandardIndicator indicator) Returns the indicator value, or 0d/0d if not configured to compute this metric.double
Returns the additive epsilon indicator value, or 0d/0d if not configured to compute this metricReturns the approximation set used when computing these indicators values.double
Returns the contribution value, or 0d/0d if not configured to compute this metric.double
Returns the generational distance value, or 0d/0d if not configured to compute this metric.double
Returns the generational distance plus value, or 0d/0d if not configured to compute this metric.double
Returns the hypervolume value, or 0d/0d if not configured to compute this metric.double
Returns the inverted generational distance value, or 0d/0d if not configured to compute this metricdouble
Returns the inverted generational distance plus value, or 0d/0d if not configured to compute this metricdouble
Returns the maximum Pareto front error value, or 0d/0d if not configured to compute this metricdouble
getR1()
Returns the R1 indicator value, or 0d/0d if not configured to compute this metric.double
getR2()
Returns the R2 indicator value, or 0d/0d if not configured to compute this metric.double
getR3()
Returns the R3 indicator value, or 0d/0d if not configured to compute this metric.double
Returns the spacing value, or 0d/0d if not configured to compute this metric.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moeaframework.util.format.Displayable
display
-
Constructor Details
-
IndicatorValues
Constructs a new indicator result object for the given approximation set. All indicator values are defaulted to 0d/0d.- Parameters:
approximationSet
- the approximation set used to compute these indicator values
-
-
Method Details
-
getApproximationSet
Returns the approximation set used when computing these indicators values.- Returns:
- the approximation set
-
get
Returns the indicator value, or 0d/0d if not configured to compute this metric.- Parameters:
indicator
- the indicator- Returns:
- the indicator value
-
getHypervolume
public double getHypervolume()Returns the hypervolume value, or 0d/0d if not configured to compute this metric.- Returns:
- the hypervolume value
-
getGenerationalDistance
public double getGenerationalDistance()Returns the generational distance value, or 0d/0d if not configured to compute this metric.- Returns:
- the generational distance value
-
getGenerationalDistancePlus
public double getGenerationalDistancePlus()Returns the generational distance plus value, or 0d/0d if not configured to compute this metric.- Returns:
- the generational distance plus value
-
getInvertedGenerationalDistance
public double getInvertedGenerationalDistance()Returns the inverted generational distance value, or 0d/0d if not configured to compute this metric- Returns:
- the inverted generational distance value
-
getInvertedGenerationalDistancePlus
public double getInvertedGenerationalDistancePlus()Returns the inverted generational distance plus value, or 0d/0d if not configured to compute this metric- Returns:
- the inverted generational distance plus value
-
getAdditiveEpsilonIndicator
public double getAdditiveEpsilonIndicator()Returns the additive epsilon indicator value, or 0d/0d if not configured to compute this metric- Returns:
- the additive epsilon indicator value
-
getSpacing
public double getSpacing()Returns the spacing value, or 0d/0d if not configured to compute this metric.- Returns:
- the spacing value
-
getMaximumParetoFrontError
public double getMaximumParetoFrontError()Returns the maximum Pareto front error value, or 0d/0d if not configured to compute this metric- Returns:
- the maximum Pareto front error value
-
getContribution
public double getContribution()Returns the contribution value, or 0d/0d if not configured to compute this metric.- Returns:
- the contribution value
-
getR1
public double getR1()Returns the R1 indicator value, or 0d/0d if not configured to compute this metric.- Returns:
- the R1 indicator value
-
getR2
public double getR2()Returns the R2 indicator value, or 0d/0d if not configured to compute this metric.- Returns:
- the R2 indicator value
-
getR3
public double getR3()Returns the R3 indicator value, or 0d/0d if not configured to compute this metric.- Returns:
- the R3 indicator value
-
asProperties
Returns the indicator values as a typed properties object. This is useful for storing the data, such as withResultFileWriter
.- Returns:
- the indicator values as typed properties
-
asTabularData
Description copied from interface:Formattable
Returns the contents of this object as aTabularData
instance, which can be used to save, print, or format the data in various ways.- Specified by:
asTabularData
in interfaceFormattable<org.apache.commons.lang3.tuple.Pair<StandardIndicator,
Double>> - Returns:
- the
TabularData
instance
-