Package com.google.refine.clustering.knn
Class DistanceFactory
java.lang.Object
com.google.refine.clustering.knn.DistanceFactory
Registry of distances for kNN clustering.
- Author:
- Antonin Delpeuch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimilarityDistanceReturns the distance registered under this name, or null if it does not exist.Lists the available distances, by name.static voidput(String name, SimilarityDistance distance) Registers a new distance under a name.
-
Field Details
-
_distances
-
-
Constructor Details
-
DistanceFactory
public DistanceFactory()
-
-
Method Details
-
get
Returns the distance registered under this name, or null if it does not exist. -
put
Registers a new distance under a name. -
getDistanceNames
Lists the available distances, by name.
-