Package io.goobi.viewer.controller
Class DamerauLevenshtein
java.lang.Object
io.goobi.viewer.controller.DamerauLevenshtein
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Calculate distance according to the actual Damerau-Levenshtein distanceint[][]
int
Calculate distance according to Optimal String Alignment Distance AlgorithmtoString()
-
Constructor Details
-
DamerauLevenshtein
- Parameters:
a
-b
-
-
-
Method Details
-
getMatrix
public int[][] getMatrix() -
getSimilarity
public int getSimilarity()Calculate distance according to Optimal String Alignment Distance Algorithm- Returns:
- Calculated distance
-
getDHSimilarity
public int getDHSimilarity()Calculate distance according to the actual Damerau-Levenshtein distance- Returns:
- Calculated distance
-
toString
-