R- The type of similarity score unit used by this EditDistance.
public interface EditDistance<R> extends SimilarityScore<R>
An edit distance is a formal metric on the Kleene closure (
X*) over an
X). Note, that a metric
on a set
S is a function
d: [S * S] -> [0, INFINITY) such
that the following hold for
d(x,y) >= 0, non-negativity or separation axiom
d(x,y) == 0, if and only if,
x == y
d(x,y) == d(y,x), symmetry, and
d(x,z) <= d(x,y) + d(y,z), the triangle inequality
This is a BiFunction<CharSequence, CharSequence, R>.
accepts a pair of
and returns an
R type similarity score.
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.