Package com.tagtraum.core.lang
Class Levenshtein
- java.lang.Object
-
- com.tagtraum.core.lang.Levenshtein
-
public class Levenshtein extends Object
Levenshtein distance.
-
-
Constructor Summary
Constructors Constructor Description Levenshtein()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
distance(String s, String t)
Compute Levenshtein distance.static float
normDistance(String s, String t)
Normalizes the Levenshtein distance by dividing by the length of the longer of the two strings.
-