| Modifier and Type | Field and Description |
|---|---|
| private final LongestCommonSubsequence |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final double | Returns: The computed distance metric value.The first string to compare. s1, final String The second string to compare. s2)Implements info. Distance metric based on Longest Common Subsequence, computed as 1 - |LCS(s1, s2)| / max(|s1|, |s2|). |
| lcs | back to summary |
|---|---|
| private final LongestCommonSubsequence lcs | |
| MetricLCS | back to summary |
|---|---|
| public MetricLCS() | |
| distance | back to summary |
|---|---|
| public final double distance(final String s1, final String s2) Implements info. Distance metric based on Longest Common Subsequence, computed as 1 - |LCS(s1, s2)| / max(|s1|, |s2|).
| |