Class Quantile
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
org.anchoranalysis.feature.bean.results.Quantile
public class Quantile extends FeatureResultsStatistic
A quantile of the results from a particular feature.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description Quantile() -
Method Summary
Modifier and Type Method Description doublegetQuantile()The quantile.booleanisAsPercentage()If true, the quantile is interpreted as a percentage rather than a decimal.voidsetAsPercentage(boolean asPercentage)If true, the quantile is interpreted as a percentage rather than a decimal.voidsetQuantile(double quantile)The quantile.protected 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.FeatureResultsStatistic
calculate, getId, setIdMethods 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
-
Quantile
public Quantile()
-
-
Method Details
-
statisticFromFeatureValue
protected double statisticFromFeatureValue(cern.colt.list.DoubleArrayList values)Description copied from class:FeatureResultsStatisticCalculates the statistic for a given list of result-value.- Specified by:
statisticFromFeatureValuein classFeatureResultsStatistic- Parameters:
values- the values to calculate the statistic for.- Returns:
- the calculated statistic.
-
getQuantile
public double getQuantile()The quantile. -
setQuantile
public void setQuantile(double quantile)The quantile. -
isAsPercentage
public boolean isAsPercentage()If true, the quantile is interpreted as a percentage rather than a decimal. -
setAsPercentage
public void setAsPercentage(boolean asPercentage)If true, the quantile is interpreted as a percentage rather than a decimal.
-