Class FeatureResults
- Direct Known Subclasses:
Count,FeatureResultsStatistic
Features that process
ResultsVectorList.
i.e. the result of the calculation of some other features.
This is useful for applying some aggregate statistics (min, max etc.) to the results of multiple features calculated together.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculates a value for some input.abstract doublecalculate(FeatureInputResults input) Calculates the feature-result given aFeatureInputResults.Class<? extends FeatureInput> The class corresponding to feature input-type.Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
FeatureResults
public FeatureResults()
-
-
Method Details
-
calculate
public double calculate(FeatureCalculationInput<FeatureInputResults> input) throws FeatureCalculationException Description copied from class:FeatureCalculates a value for some input.- Specified by:
calculatein classFeature<FeatureInputResults>- Parameters:
input- the input to the calculation.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException- if the calculation cannot successfully complete.
-
calculate
Calculates the feature-result given aFeatureInputResults.- Parameters:
input- the input.- Returns:
- the calculated value.
- Throws:
FeatureCalculationException- if the result cannot be successfully calculated.
-
inputType
Description copied from class:FeatureThe class corresponding to feature input-type.i.e. corresponding to the
Ttemplate parameter.- Specified by:
inputTypein classFeature<FeatureInputResults>- Returns:
- the class.
-