| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final Levenshtein | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static double | Returns: a value in the interval[0, 1] indicating the degree of match.The first string s1, final String The second string s2)Compare two strings on the basis of word-by-word correlation analysis. |
| public double | |
| public boolean | |
| public static double | LCSSimilarity(String first, String second)
Returns the Longest Common Substring (LCS) similarity rating between two strings, ignoring case. |
| public double | similarity(final String first, final String second)
Calculates the similarity (a number within 0 and 1) between two strings. |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| METRIC_DISTANCE | back to summary |
|---|---|
| private final Levenshtein METRIC_DISTANCE | |
| METRIC_THRESHOLD | back to summary |
|---|---|
| private final int METRIC_THRESHOLD | |
| StringSimilarity | back to summary |
|---|---|
| public StringSimilarity() | |
| correlateByWords | back to summary |
|---|---|
| public static double correlateByWords(final String s1, final String s2) Compare two strings on the basis of word-by-word correlation analysis. | |
| editDistanceIgnoreCase | back to summary |
|---|---|
| public double editDistanceIgnoreCase(String a, String b) | |
| isSimilar | back to summary |
|---|---|
| public boolean isSimilar(String a, String b) String similarity based on Levenshtein, ignoreCase, and fixed metric threshold of 4. | |
| LCSSimilarity | back to summary |
|---|---|
| public static double LCSSimilarity(String first, String second) Returns the Longest Common Substring (LCS) similarity rating between two strings, ignoring case. This function uses the following formula = | |
| similarity | back to summary |
|---|---|
| public double similarity(final String first, final String second) Calculates the similarity (a number within 0 and 1) between two strings. http://stackoverflow.com/questions/955110/similarity-string-comparison-in-java | |