Class FeatureResultsStatistic

Direct Known Subclasses:
Maximum, Mean, Minimum, Quantile, StandardDeviation, Sum

public abstract class FeatureResultsStatistic extends FeatureResults
Base class for an instance of FeatureResults that calculating a statistic across all results in the ResultsVectorList for a particular feature-value.
Author:
Owen Feehan
  • Constructor Details

    • FeatureResultsStatistic

      public FeatureResultsStatistic()
  • Method Details

    • calculate

      public double calculate(FeatureInputResults input) throws FeatureCalculationException
      Description copied from class: FeatureResults
      Calculates the feature-result given a FeatureInputResults.
      Specified by:
      calculate in class FeatureResults
      Parameters:
      input - the input.
      Returns:
      the calculated value.
      Throws:
      FeatureCalculationException - if the result cannot be successfully calculated.
    • statisticFromFeatureValue

      protected abstract double statisticFromFeatureValue(cern.colt.list.DoubleArrayList values) throws FeatureCalculationException
      Calculates the statistic for a given list of result-value.
      Parameters:
      values - the values to calculate the statistic for.
      Returns:
      the calculated statistic.
      Throws:
      FeatureCalculationException - if the calculation cannot complete successfully.
    • getId

      public String getId()
      The name of the feature, whose results will provide the statistic.
    • setId

      public void setId(String id)
      The name of the feature, whose results will provide the statistic.