Package com.google.refine.clustering.knn
Class VicinoDistance
java.lang.Object
com.google.refine.clustering.knn.VicinoDistance
- All Implemented Interfaces:
SimilarityDistance
Wrapper to expose a similarity function from the Vicino
library.
- Author:
- Antonin Delpeuch
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
VicinoDistance
public VicinoDistance(edu.mit.simile.vicino.distances.Distance d)
-
-
Method Details
-
compute
Description copied from interface:SimilarityDistanceCompute the distance between two strings. This should return 0 when the two arguments are equal, and rise as their differences increase.- Specified by:
computein interfaceSimilarityDistance
-