public class Distance
extends java.lang.Object
Constructor and Description |
---|
Distance() |
Modifier and Type | Method and Description |
---|---|
static float |
damerauLevenshtein(java.lang.String word1,
java.lang.String word2)
Compute the damerau-levenshtein distance between 2 words using costs=1.0
|
static float |
damerauLevenshtein(java.lang.String word1,
java.lang.String word2,
float subst,
float insert,
float transpose,
float del)
Compute the damerau-levenshtein distance between 2 words
|
public static float damerauLevenshtein(java.lang.String word1, java.lang.String word2)
word1
- The first wordword2
- The second wordpublic static float damerauLevenshtein(java.lang.String word1, java.lang.String word2, float subst, float insert, float transpose, float del)
word1
- The first wordword2
- The second wordsubst
- The substitution costinsert
- The insertion costtranspose
- The transposition costdel
- The deletion costCopyright © 2013 Dassault Systèmes, All Rights Reserved.