@Shareable public class AbsoluteThreshold extends java.lang.Object implements Threshold, java.io.Serializable
Checks similarity values to ensure their absolute values are over the ThresholdValue
.
Constructor and Description |
---|
AbsoluteThreshold(double threshold)
Construct a new absolute-value threshold.
|
Modifier and Type | Method and Description |
---|---|
boolean |
retain(double sim)
Checks a similarity value against retention criteria for inclusion in similarity models.
|
@Inject public AbsoluteThreshold(@ThresholdValue double threshold)
Construct a new absolute-value threshold.
threshold
- The threshold valud.public boolean retain(double sim)
Threshold
Checks a similarity value against retention criteria for inclusion in similarity models.