T
- feature-input typepublic interface FeatureCalculator<T extends FeatureInput> extends CalculationPartResolver<T>, FeatureSymbolCalculator<T>
FeatureCalculationInput
when passed a particular Feature
and
corresponding FeatureCalculationInput
.Modifier and Type | Method and Description |
---|---|
double |
calculate(Feature<T> feature,
FeatureCalculationInput<T> input)
Calculate the result of feature with a particular input.
|
default ResultsVector |
calculate(FeatureList<T> features,
FeatureCalculationInput<T> input)
Calculates results for a list of features with a particular input, throwing an exception if a
calculation fails.
|
search, search
calculateFeatureByIdentifier, resolveFeatureIdentifier
double calculate(Feature<T> feature, FeatureCalculationInput<T> input) throws FeatureCalculationException
feature
- the feature to calculate.input
- the input to calculate.FeatureCalculationException
- if the feature cannot be successfully calculated.default ResultsVector calculate(FeatureList<T> features, FeatureCalculationInput<T> input) throws NamedFeatureCalculateException
features
- list of features.input
- the input to calculate.Double.NaN
(and the stored exception) if an error occurs.NamedFeatureCalculateException
- if any feature cannot be successfully calculated.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.