| java.lang.Object snow.texteditor.EditDistance
EditDistance | final public class EditDistance (Code) | | Character edit-distance: find the edit distance (also called Levenstein distance)
between two strings.
contain the edit distance and the editex variant (combine edit and soundex phonix)
|
d | static int d(int a, int b)(Code) | | |
editDistance | public static int editDistance(String s, String t, int maxDistance)(Code) | | the edit distance, also called Levenshtein distance.is the number of inserts, deletes to transform string s into string t |
editexDistanceEnglish | public static int editexDistanceEnglish(String w1, String w2, int tolerance)(Code) | | combine edit and soundex
w1 must be already uppercased
|
editexEnglish | static int editexEnglish(int i, int j, String w1, String w2)(Code) | | combine edit and soundex for English
|
getRandomString | public static String getRandomString(int len)(Code) | | |
reditexEnglish | static int reditexEnglish(int a, int b)(Code) | | same as r(a,b) zero if a and b are identical 1 if a and b in the same group, 2 otherwise
|
|
|