org.grouplens.lenskit.transform.threshold

Interface Threshold

• All Known Implementing Classes:
AbsoluteThreshold, NoThreshold, RealThreshold

@DefaultImplementation(value=RealThreshold.class)
public interface Threshold

Determine whether similarity values should be accepted into or rejected from similarity models.

• Method Summary

All Methods
Modifier and Type Method and Description
boolean retain(double sim)
Checks a similarity value against retention criteria for inclusion in similarity models.
• Method Detail

• retain

boolean retain(double sim)

Checks a similarity value against retention criteria for inclusion in similarity models.

Parameters:
sim - The double similarity value to check against the threshold.
Returns:
true if the parameter similarity value should be retained in the similarity model, false otherwise.
Skip navigation links