Interface FeatureCalculatorSingle<T extends FeatureInput>

Type Parameters:
T - feature input-type
All Known Implementing Classes:
FeatureCalculatorSingleChangeInput, FeatureCalculatorSingleFromMulti

public interface FeatureCalculatorSingle<T extends FeatureInput>
Like a FeatureCalculator but is permanently associated with a single Feature.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    calculate(T input)
    Calculate the results of the feature with a particular input.
    double
    calculateSuppressErrors(T input, ErrorReporter errorReporter)
    Calculates the result for an input recording the error to an ErrorReporter if anything goes wrong, but throwing no exception.
  • Method Details

    • calculate

      double calculate(T input) throws FeatureCalculationException
      Calculate the results of the feature with a particular input.
      Parameters:
      input - the input to calculate.
      Returns:
      the results of the calculation.
      Throws:
      FeatureCalculationException - if the feature cannot be successfully calculated.
    • calculateSuppressErrors

      double calculateSuppressErrors(T input, ErrorReporter errorReporter)
      Calculates the result for an input recording the error to an ErrorReporter if anything goes wrong, but throwing no exception.
      Parameters:
      input - the input to calculate.
      errorReporter - where errors are recorded.
      Returns:
      the result of the calculation.