Interface SimilarityDistance

All Known Implementing Classes:
VicinoDistance

public interface SimilarityDistance
A function that computes a similarity distance between two strings. This is introduced to provide a clean interface for extensions, independent of the library currently used (Simile Vicino, unmaintained since 2010 as of December 2018).
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Compute the distance between two strings.
  • Method Details

    • compute

      double compute(String a, String b)
      Compute the distance between two strings. This should return 0 when the two arguments are equal, and rise as their differences increase.