T
- feature-input typepublic class CompareWithRangeFeature<T extends FeatureInput> extends RangeCompareBase<T>
CompareWithRange
but uses features to calculate boundary valuesConstructor and Description |
---|
CompareWithRangeFeature() |
Modifier and Type | Method and Description |
---|---|
protected double |
boundaryMax(FeatureCalculationInput<T> input)
Boundary to define the maximum accepted value in the range
|
protected double |
boundaryMin(FeatureCalculationInput<T> input)
Boundary to define the minimum accepted value in the range
|
String |
describeParameters()
A human-readable description of the parameterization of the bean.
|
protected Feature<T> |
featureToCalcInputVal()
Which feature to calculate the input-value? The result is then passed to
RangeCompareBase.calculateForValue(double, org.anchoranalysis.feature.calculate.FeatureCalculationInput<T>) |
Feature<T> |
getMax()
Calculates maximally-allowed range boundary
|
Feature<T> |
getMin()
Calculates minimally-allowed range boundary
|
double |
getWithinValue()
Constant to return if value lies within the range
|
void |
setMax(Feature<T> max)
Calculates maximally-allowed range boundary
|
void |
setMin(Feature<T> min)
Calculates minimally-allowed range boundary
|
void |
setWithinValue(double withinValue)
Constant to return if value lies within the range
|
protected double |
withinRangeValue(double valWithinRange,
FeatureCalculationInput<T> input)
What value to return if the value is inside the range
|
calculate, getAboveMaxValue, getBelowMinValue, setAboveMaxValue, setBelowMinValue
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
protected Feature<T> featureToCalcInputVal()
RangeCompareBase
RangeCompareBase.calculateForValue(double, org.anchoranalysis.feature.calculate.FeatureCalculationInput<T>)
featureToCalcInputVal
in class RangeCompareBase<T extends FeatureInput>
protected double boundaryMin(FeatureCalculationInput<T> input) throws FeatureCalculationException
RangeCompareBase
boundaryMin
in class RangeCompareBase<T extends FeatureInput>
FeatureCalculationException
protected double boundaryMax(FeatureCalculationInput<T> input) throws FeatureCalculationException
RangeCompareBase
boundaryMax
in class RangeCompareBase<T extends FeatureInput>
FeatureCalculationException
protected double withinRangeValue(double valWithinRange, FeatureCalculationInput<T> input) throws FeatureCalculationException
RangeCompareBase
withinRangeValue
in class RangeCompareBase<T extends FeatureInput>
FeatureCalculationException
public String describeParameters()
Feature
describeParameters
in class RangeCompareBase<T extends FeatureInput>
public double getWithinValue()
public void setWithinValue(double withinValue)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.