Class ReplaceInfinity<T extends FeatureInput>

Type Parameters:
T - the type of FeatureInput this feature operates on

public class ReplaceInfinity<T extends FeatureInput> extends ReplaceUnusualValue<T>
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 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 class ReplaceUnusualValue<T extends FeatureInput>
      Parameters:
      featureResult - the result of the feature calculation
      Returns:
      true if the result is unusual and should be replaced, false otherwise