E- The type of objects whose features are extracted.
public class BoundedFeatureExtractor<E> extends ModifiedFeatureExtractor<E> implements Serializable
BoundedFeatureExtractorprovides a lower-bound and upper-bound on feature values between which all values from a contained base extractor are bounded. Values greater than the upper bound are replaced with the upper bound, and values less than the lower bound are replaced with the lower bound. Values may be unbounded below by using
Double.NEGATIVE_INFINITYas the lower bound, and may be unbounded above by using
Double.POSITIVE_INFINITYthe upper bound.
|Constructor and Description|
Construct a bounded feature extractor that bounds the feature values produced by the specified extractor to be within the specified minimum and maximum values.
|Modifier and Type||Method and Description|
Return the bounded value corresponding to the specified value.
public BoundedFeatureExtractor(FeatureExtractor<? super E> extractor, double minValue, double maxValue)
extractor- Base feature extractor.
minValue- Minimum value of a feature
maxValue- Maximum value of a feature
minVal > maxVal