Package org.moeaframework
Class Analyzer.IndicatorResult
java.lang.Object
org.moeaframework.Analyzer.IndicatorResult
- All Implemented Interfaces:
Displayable
- Enclosing class:
- Analyzer
Inner class for storing the results for a single performance indicator.
-
Constructor Summary
ConstructorDescriptionIndicatorResult
(String indicator, double[] values) Constructs a new object for storing the results for a single indicator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
display
(PrintStream ps) Displays the contents of this object to the given output stream.Returns the indicator value of the aggregate Pareto set, ornull
if the aggregate value was not computed.int
getCount()
Returns the number of samples.Returns the indicator name.Returns a list of algorithms whose performance with respect to this indicator are statistically similar to the current algorithm.double
getMax()
Returns the maximum indicator value.double
Returns the median indicator value.double
getMin()
Returns the minimum indicator value.double
getStatistic
(org.apache.commons.math3.stat.descriptive.UnivariateStatistic statistic) Computes and returns the value of the given univariate statistic.double[]
Returns the computed indicator values.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
-
IndicatorResult
Constructs a new object for storing the results for a single indicator.- Parameters:
indicator
- the name of the indicatorvalues
- the computed indicator values
-
-
Method Details
-
getValues
public double[] getValues()Returns the computed indicator values.- Returns:
- the indicator values
-
getMin
public double getMin()Returns the minimum indicator value.- Returns:
- the minimum indicator value
-
getMedian
public double getMedian()Returns the median indicator value.- Returns:
- the median indicator value
-
getMax
public double getMax()Returns the maximum indicator value.- Returns:
- the maximum indicator value
-
getStatistic
public double getStatistic(org.apache.commons.math3.stat.descriptive.UnivariateStatistic statistic) Computes and returns the value of the given univariate statistic.- Parameters:
statistic
- the univariate statistic to compute- Returns:
- the computed value of the statistic
-
getCount
public int getCount()Returns the number of samples.- Returns:
- the number of samples
-
getIndifferentAlgorithms
Returns a list of algorithms whose performance with respect to this indicator are statistically similar to the current algorithm. This list will only be populated ifAnalyzer.showStatisticalSignificance()
is invoked.- Returns:
- a list of algorithms with statistically similar performance
-
getAggregateValue
Returns the indicator value of the aggregate Pareto set, ornull
if the aggregate value was not computed. This value is only computed ifAnalyzer.showAggregate()
is invoked.- Returns:
- the aggregate indicator value; or
null
if not computed
-
getIndicator
Returns the indicator name.- Returns:
- the indicator name
-
display
Description copied from interface:Displayable
Displays the contents of this object to the given output stream. This method does not close the underlying stream; the caller is responsible for disposing it.- Specified by:
display
in interfaceDisplayable
- Parameters:
ps
- the output stream
-