T
- feature input-typepublic abstract class StatisticalBase<T extends FeatureInput> extends FeatureUnaryGeneric<T>
Constructor and Description |
---|
StatisticalBase() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureCalculationInput<T> input)
Calculates a value for some input.
|
protected abstract double |
deriveScore(double featureValue,
double mean,
FeatureResultSupplier stdDev)
Derive scores given the value, mean and standard-deviation
|
String |
describeParameters()
A human-readable description of the parameterization of the bean.
|
Feature<T> |
getItemMean() |
Feature<T> |
getItemStdDev() |
void |
setItemMean(Feature<T> itemMean) |
void |
setItemStdDev(Feature<T> itemStdDev) |
getItem, inputType, setItem
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, 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(FeatureCalculationInput<T> input) throws FeatureCalculationException
Feature
calculate
in class Feature<T extends FeatureInput>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.public String describeParameters()
Feature
describeParameters
in class Feature<T extends FeatureInput>
protected abstract double deriveScore(double featureValue, double mean, FeatureResultSupplier stdDev) throws FeatureCalculationException
featureValue
- the feature-value calculated from getItem()mean
- the meanstdDev
- a means to get the std-deviation (if needed)FeatureCalculationException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.