Class FeatureResultsStatistic
Object
Base class for an instance of
FeatureResults that calculating a statistic across all
results in the ResultsVectorList for a particular feature-value.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculate(FeatureInputResults input) Calculates the feature-result given aFeatureInputResults.getId()The name of the feature, whose results will provide the statistic.voidThe name of the feature, whose results will provide the statistic.protected abstract doublestatisticFromFeatureValue(cern.colt.list.DoubleArrayList values) Calculates the statistic for a given list of result-value.Methods inherited from class org.anchoranalysis.feature.bean.results.FeatureResults
calculate, inputTypeMethods 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
-
FeatureResultsStatistic
public FeatureResultsStatistic()
-
-
Method Details
-
calculate
Description copied from class:FeatureResultsCalculates the feature-result given aFeatureInputResults.- Specified by:
calculatein classFeatureResults- Parameters:
input- the input.- Returns:
- the calculated value.
- Throws:
FeatureCalculationException- if the result cannot be successfully calculated.
-
statisticFromFeatureValue
protected abstract double statisticFromFeatureValue(cern.colt.list.DoubleArrayList values) throws FeatureCalculationException Calculates the statistic for a given list of result-value.- Parameters:
values- the values to calculate the statistic for.- Returns:
- the calculated statistic.
- Throws:
FeatureCalculationException- if the calculation cannot complete successfully.
-
getId
The name of the feature, whose results will provide the statistic. -
setId
The name of the feature, whose results will provide the statistic.
-