Package com.google.refine.clustering.knn
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
-
Method Details
-
compute
Compute the distance between two strings. This should return 0 when the two arguments are equal, and rise as their differences increase.
-