FromType - The type that the similarity is from.ToType - The type that the similarity is to.public interface SimilarityFunction<FromType,ToType>
| Modifier and Type | Method and Description |
|---|---|
DivergenceFunction<FromType,ToType> |
asDivergence()
Converts the similarity function into a divergence function.
|
double |
evaluate(FromType from,
ToType to)
Evaluates the similarity between the two given objects.
|
double evaluate(FromType from, ToType to)
from - The object the similarity is from.to - The object the similarity is to.DivergenceFunction<FromType,ToType> asDivergence()