T
- feature input-typepublic interface FeatureCalculatorMulti<T extends FeatureInput>
FeatureCalculator
but is permanently associated with one or more Feature
s.Modifier and Type | Method and Description |
---|---|
ResultsVector |
calculate(T input)
Calculate the results of the features with a particular input.
|
default ResultsVector |
calculate(T input,
ErrorReporter errorReporter,
boolean suppressErrors)
Calculates the results for an
input , either calling calculate(T) or calculateSuppressErrors(T, org.anchoranalysis.core.log.error.ErrorReporter) depending on a flag. |
ResultsVector |
calculate(T input,
FeatureList<T> featuresSubset)
Calculates the results of a subset of the features with a particular input.
|
ResultsVector |
calculateSuppressErrors(T input,
ErrorReporter errorReporter)
Calculates the results for an
input recording the error to an ErrorReporter
if anything goes wrong, but throwing no exception. |
int |
sizeFeatures()
The number of features that is calculated on each call to
calculate(T) , and therefore
the size of the returned ResultsVector . |
ResultsVector calculate(T input) throws NamedFeatureCalculateException
input
- the input to calculate.NamedFeatureCalculateException
- if any feature cannot be successfully calculated.ResultsVector calculate(T input, FeatureList<T> featuresSubset) throws NamedFeatureCalculateException
input
- the input to calculate.featuresSubset
- the subset of features (from those bound to the current instance) to
calculate with.NamedFeatureCalculateException
- if any feature cannot be successfully calculated.ResultsVector 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.default ResultsVector calculate(T input, ErrorReporter errorReporter, boolean suppressErrors) throws NamedFeatureCalculateException
input
, either calling calculate(T)
or calculateSuppressErrors(T, org.anchoranalysis.core.log.error.ErrorReporter)
depending on a flag.input
- the input to calculate.errorReporter
- where errors are recorded.suppressErrors
- if true, errors are recorded via the errorReporter
. if false,
they are thrown as exceptions.NamedFeatureCalculateException
- if suppressErrors==false
and an error occurs
during calculation.int sizeFeatures()
calculate(T)
, and therefore
the size of the returned ResultsVector
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.