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
ConstructorsConstructorDescriptionIndicatorValues(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 aTabularDatainstance, which can be used to save, print, or format the data in various ways.doubleget(StandardIndicator indicator) Returns the indicator value, or 0d/0d if not configured to compute this metric.doubleReturns the additive epsilon indicator value, or 0d/0d if not configured to compute this metricReturns the approximation set used when computing these indicators values.doubleReturns the contribution value, or 0d/0d if not configured to compute this metric.doubleReturns the generational distance value, or 0d/0d if not configured to compute this metric.doubleReturns the generational distance plus value, or 0d/0d if not configured to compute this metric.doubleReturns the hypervolume value, or 0d/0d if not configured to compute this metric.doubleReturns the inverted generational distance value, or 0d/0d if not configured to compute this metricdoubleReturns the inverted generational distance plus value, or 0d/0d if not configured to compute this metricdoubleReturns the maximum Pareto front error value, or 0d/0d if not configured to compute this metricdoublegetR1()Returns the R1 indicator value, or 0d/0d if not configured to compute this metric.doublegetR2()Returns the R2 indicator value, or 0d/0d if not configured to compute this metric.doublegetR3()Returns the R3 indicator value, or 0d/0d if not configured to compute this metric.doubleReturns 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, waitMethods 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:FormattableReturns the contents of this object as aTabularDatainstance, which can be used to save, print, or format the data in various ways.- Specified by:
asTabularDatain interfaceFormattable<org.apache.commons.lang3.tuple.Pair<StandardIndicator,Double>> - Returns:
- the
TabularDatainstance
-