Class UnitsWithinRange<T extends FeatureInputWithResolution>
Object
AnchorBean<Feature<T>>
InitializableBean<Feature<T>, FeatureInitialization>
Feature<T>
FeatureUnary<T,T>
FeatureUnaryGeneric<T>
WithResolutionBase<T>
UnitsWithinRange<T>
- Type Parameters:
T- feature input-type
public class UnitsWithinRange<T extends FeatureInputWithResolution>
extends WithResolutionBase<T>
Checks if a value lies within a range defined by units (a minimum and maximum boundary)
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculateWithResolution(double value, Resolution resolution) UnitValueExtentgetMax()Maximum-boundary for acceptable rangeUnitValueExtentgetMin()Minimum-boundary for acceptable rangedoubleReturned as a constant if a value lies otside the rangedoubleReturned as a constant if a value lies within the rangevoidsetMax(UnitValueExtent max) Maximum-boundary for acceptable rangevoidsetMin(UnitValueExtent min) Minimum-boundary for acceptable rangevoidsetOutside(double outside) Returned as a constant if a value lies otside the rangevoidsetWithin(double within) Returned as a constant if a value lies within the rangeMethods inherited from class org.anchoranalysis.image.feature.bean.physical.WithResolutionBase
calculate, isAcceptMissingResolution, setAcceptMissingResolutionMethods inherited from class org.anchoranalysis.feature.bean.operator.FeatureUnary
getItem, inputType, setItemMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, 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
-
UnitsWithinRange
public UnitsWithinRange()
-
-
Method Details
-
calculateWithResolution
protected double calculateWithResolution(double value, Resolution resolution) throws FeatureCalculationException - Specified by:
calculateWithResolutionin classWithResolutionBase<T extends FeatureInputWithResolution>- Throws:
FeatureCalculationException
-
describeParameters
-
getWithin
public double getWithin()Returned as a constant if a value lies within the range -
setWithin
public void setWithin(double within) Returned as a constant if a value lies within the range -
getOutside
public double getOutside()Returned as a constant if a value lies otside the range -
setOutside
public void setOutside(double outside) Returned as a constant if a value lies otside the range -
getMin
public UnitValueExtent getMin()Minimum-boundary for acceptable rangeWe default to volume as units, but it could also be area. It's arbitrary for 0-value.
-
setMin
public void setMin(UnitValueExtent min) Minimum-boundary for acceptable rangeWe default to volume as units, but it could also be area. It's arbitrary for 0-value.
-
getMax
public UnitValueExtent getMax()Maximum-boundary for acceptable rangeWe default to volume as units, but it could also be area. It's arbitrary for infinity-value.
-
setMax
public void setMax(UnitValueExtent max) Maximum-boundary for acceptable rangeWe default to volume as units, but it could also be area. It's arbitrary for infinity-value.
-