public abstract class LevensteinDistance extends Object
Constructor and Description |
---|
LevensteinDistance() |
Modifier and Type | Method and Description |
---|---|
static <T> int |
getLevensteinDistance(List<T> s1,
List<T> s2)
Get the Levenstein distance between the two lists s1 and s2.
|
static int |
getLevensteinDistance(String s1,
String s2)
Get the Levenstein distance between two strings s1 and s2
|
static <T> int |
getLevensteinDistance(T[] s1,
T[] s2)
Get the Levenstein distance between the two arrays s1 and s2
|
static String |
getNearestMatch(String s,
String[] array)
Given the input string s, get the string in the input array that is closest to s in terms of
Levenstein distance.
|
public static <T> int getLevensteinDistance(List<T> s1, List<T> s2)
public static <T> int getLevensteinDistance(T[] s1, T[] s2)
public static int getLevensteinDistance(String s1, String s2)
Copyright © 2017. All rights reserved.