Class DamerauLevenshtein

java.lang.Object
io.goobi.viewer.controller.DamerauLevenshtein

public class DamerauLevenshtein extends Object
  • Constructor Details

    • DamerauLevenshtein

      public DamerauLevenshtein(String a, String b)
      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

      public String toString()
      Overrides:
      toString in class Object