Class VicinoDistance

java.lang.Object
com.google.refine.clustering.knn.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 Details

    • VicinoDistance

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

    • 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