T
- feature input-typepublic interface FeatureCalculatorSingle<T extends FeatureInput>
FeatureCalculator
but is permanently associated with a single Feature
.Modifier and Type | Method and 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. |
double calculate(T input) throws FeatureCalculationException
input
- the input to calculate.FeatureCalculationException
- if the feature cannot be successfully calculated.double calculateSuppressErrors(T input, ErrorReporter errorReporter)
input
recording the error to an ErrorReporter
if
anything goes wrong, but throwing no exception.input
- the input to calculate.errorReporter
- where errors are recorded.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.