public abstract class FeatureResultsStatistic extends FeatureResults
FeatureResults
that calculating a statistic across all
results in the ResultsVectorList
for a particular feature-value.Constructor and Description |
---|
FeatureResultsStatistic() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureInputResults input)
Calculates the feature-result given a
FeatureInputResults . |
String |
getId()
The name of the feature, whose results will provide the statistic.
|
void |
setId(String id)
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.
|
calculate, inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public double calculate(FeatureInputResults input) throws FeatureCalculationException
FeatureResults
FeatureInputResults
.calculate
in class FeatureResults
input
- the input.FeatureCalculationException
- if the result cannot be successfully calculated.protected abstract double statisticFromFeatureValue(cern.colt.list.DoubleArrayList values) throws FeatureCalculationException
values
- the values to calculate the statistic for.FeatureCalculationException
- if the calculation cannot complete successfully.public String getId()
public void setId(String id)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.