Interface ObjectSimilarityScore<T,R>
- Type Parameters:
T- The left and right input type.R- The type of similarity score unit used by this score.
- All Superinterfaces:
BiFunction<T,T, R>
- All Known Subinterfaces:
EditDistance<R>, SimilarityScore<R>
- All Known Implementing Classes:
CosineDistance, DamerauLevenshteinDistance, HammingDistance, IntersectionSimilarity, JaccardDistance, JaccardSimilarity, JaroWinklerDistance, JaroWinklerSimilarity, LevenshteinDetailedDistance, LevenshteinDistance, LongestCommonSubsequence, LongestCommonSubsequenceDistance
Scores the similarity between two
Objects of the same type.
A string similarity score is intended to have some of the properties of a metric, yet allowing for exceptions, like the Jaro-Winkler similarity score.
A similarity score is the function d: [X * X] -> [0, INFINITY) with the following properties:
d(x,y) >= 0, non-negativity or separation axiomd(x,y) == d(y,x), symmetry.
Notice, these are two of the properties that contribute to d being a metric.
- Since:
- 1.13.0
-
Method Summary
Methods inherited from interface BiFunction
andThen
-
Method Details
-
apply
-