| Modifier and Type | Field and Description |
|---|---|
| private final Levenshtein |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final double | Returns: The computed distance in the range [0, 1]The first string to compare. s1, final String The second string to compare. s2)Implements info. Compute distance as Levenshtein(s1, s2) / max(|s1|, |s2|). |
| public final double | Returns: 1.0 - the computed distanceThe first string to compare. s1, final String The second string to compare. s2)Implements info. Return 1 - distance. |
| l | back to summary |
|---|---|
| private final Levenshtein l | |
| NormalizedLevenshtein | back to summary |
|---|---|
| public NormalizedLevenshtein() | |
| distance | back to summary |
|---|---|
| public final double distance(final String s1, final String s2) Implements info. Compute distance as Levenshtein(s1, s2) / max(|s1|, |s2|).
| |
| similarity | back to summary |
|---|---|
| public final double similarity(final String s1, final String s2) Implements info. Return 1 - distance.
| |