Class FeatureResultsStatistic
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<Feature<T>,FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<FeatureInputResults>
org.anchoranalysis.feature.bean.results.FeatureResults
org.anchoranalysis.feature.bean.results.FeatureResultsStatistic
public abstract class FeatureResultsStatistic extends FeatureResults
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 Constructor Description FeatureResultsStatistic() -
Method Summary
Modifier and Type Method Description doublecalculate(FeatureInputResults input)Calculates the feature-result given aFeatureInputResults.StringgetId()The name of the feature, whose results will provide the statistic.voidsetId(String id)The 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 FeatureCalculationExceptionCalculates 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.
-