Class ReplaceInfinity<T extends FeatureInput>
Object
AnchorBean<Feature<T>>
InitializableBean<Feature<T>,FeatureInitialization>
Feature<T>
FeatureUnary<T,T>
FeatureUnaryGeneric<T>
WithValueBase<T>
ReplaceUnusualValue<T>
ReplaceInfinity<T>
- Type Parameters:
T
- the type ofFeatureInput
this feature operates on
Replaces infinite values in a feature's result with a specified replacement value.
This class extends ReplaceUnusualValue
to specifically handle infinite values
(positive or negative infinity) in the feature calculation results.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isResultUnusual
(double featureResult) Determines if the feature result is considered unusual and should be replaced.Methods inherited from class org.anchoranalysis.plugin.operator.feature.bean.replace.ReplaceUnusualValue
combineDescription, combineValueAndFeature
Methods inherited from class org.anchoranalysis.plugin.operator.feature.bean.WithValueBase
calculate, descriptionLong, getValue, setValue
Methods inherited from class org.anchoranalysis.feature.bean.operator.FeatureUnary
getItem, inputType, setItem
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
ReplaceInfinity
public ReplaceInfinity()
-
-
Method Details
-
isResultUnusual
protected boolean isResultUnusual(double featureResult) Description copied from class:ReplaceUnusualValue
Determines if the feature result is considered unusual and should be replaced.- Specified by:
isResultUnusual
in classReplaceUnusualValue<T extends FeatureInput>
- Parameters:
featureResult
- the result of the feature calculation- Returns:
- true if the result is unusual and should be replaced, false otherwise
-