@Immutable public class Damerau extends Object implements MetricStringDistance
Constructor and Description |
---|
Damerau() |
Modifier and Type | Method and Description |
---|---|
double |
distance(String s1,
String s2)
Compute the distance between strings: the minimum number of operations
needed to transform one string into the other (insertion, deletion,
substitution of a single character, or a transposition of two adjacent
characters).
|
public final double distance(String s1, String s2)
distance
in interface MetricStringDistance
distance
in interface StringDistance
s1
- s2
- Copyright © 2016. All rights reserved.