public interface DistanceMeasure extends Parametered
Parametered.ParameteredGeneralizations
log
Modifier and Type | Method and Description |
---|---|
double |
distance(double centroidLengthSquare,
Vector centroid,
Vector v)
Optimized version of distance metric for sparse vectors.
|
double |
distance(Vector v1,
Vector v2)
Returns the distance metric applied to the arguments
|
configure, createParameters, getParameters
double distance(Vector v1, Vector v2)
v1
- a Vector defining a multidimensional point in some feature spacev2
- a Vector defining a multidimensional point in some feature spacedouble distance(double centroidLengthSquare, Vector centroid, Vector v)
centroidLengthSquare
- Square of the length of centroidcentroid
- Centroid vectorCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.