Class Analyzer.IndicatorResult

java.lang.Object
org.moeaframework.Analyzer.IndicatorResult
All Implemented Interfaces:
Displayable
Enclosing class:
Analyzer

public class Analyzer.IndicatorResult extends Object implements Displayable
Inner class for storing the results for a single performance indicator.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IndicatorResult(String indicator, double[] values)
    Constructs a new object for storing the results for a single indicator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Displays the contents of this object to the given output stream.
    Returns the indicator value of the aggregate Pareto set, or null if the aggregate value was not computed.
    int
    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
    Returns the maximum indicator value.
    double
    Returns the median indicator value.
    double
    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

      public IndicatorResult(String indicator, double[] values)
      Constructs a new object for storing the results for a single indicator.
      Parameters:
      indicator - the name of the indicator
      values - 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

      public List<String> 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 if Analyzer.showStatisticalSignificance() is invoked.
      Returns:
      a list of algorithms with statistically similar performance
    • getAggregateValue

      public Double getAggregateValue()
      Returns the indicator value of the aggregate Pareto set, or null if the aggregate value was not computed. This value is only computed if Analyzer.showAggregate() is invoked.
      Returns:
      the aggregate indicator value; or null if not computed
    • getIndicator

      public String getIndicator()
      Returns the indicator name.
      Returns:
      the indicator name
    • display

      public void display(PrintStream ps)
      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 interface Displayable
      Parameters:
      ps - the output stream