Class VicinoDistance

  • All Implemented Interfaces:
    SimilarityDistance

    public class VicinoDistance
    extends Object
    implements SimilarityDistance
    Wrapper to expose a similarity function from the Vicino library.
    Author:
    Antonin Delpeuch
    • Constructor Detail

      • VicinoDistance

        public VicinoDistance​(edu.mit.simile.vicino.distances.Distance d)
    • Method Detail

      • compute

        public double compute​(String a,
                              String b)
        Description copied from interface: SimilarityDistance
        Compute the distance between two strings. This should return 0 when the two arguments are equal, and rise as their differences increase.
        Specified by:
        compute in interface SimilarityDistance