Top Description Methods
org.apache.commons.text.similarity

public Interface EditDistance<R>

extends SimilarityScore<R>
Known Direct Implementers
org.apache.commons.text.similarity.HammingDistance, org.apache.commons.text.similarity.JaccardDistance, org.apache.commons.text.similarity.JaroWinklerDistance, org.apache.commons.text.similarity.LevenshteinDetailedDistance, org.apache.commons.text.similarity.LevenshteinDistance, org.apache.commons.text.similarity.LongestCommonSubsequenceDistance, org.apache.commons.text.similarity.CosineDistance, org.apache.commons.text.similarity.DamerauLevenshteinDistance
Type Parameters
<R>
The type of similarity score unit used by this EditDistance.

Interface for Edit Distances.

An edit distance is a formal metric on the Kleene closure (X<sup>*</sup>) over an alphabet (X). Note, that a metric on a set S is a function d: [S * S] -> [0, INFINITY) such that the following hold for x,y,z in the set S:

This is a BiFunction<CharSequence, CharSequence, R>. The apply method accepts a pair of CharSequence parameters and returns an R type similarity score.

Since
1.0

Method Summary

Inherited from org.apache.commons.text.similarity.SimilarityScore:
apply