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 TypeMethodDescriptiondouble
calculate
(FeatureInputResults input) Calculates the feature-result given aFeatureInputResults
.getId()
The name of the feature, whose results will provide the statistic.void
The name of the feature, whose results will provide the statistic.protected abstract double
statisticFromFeatureValue
(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, inputType
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods 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:FeatureResults
Calculates the feature-result given aFeatureInputResults
.- Specified by:
calculate
in 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.
-