public class TanimotoDistanceMeasure extends WeightedDistanceMeasure
Parametered.ParameteredGeneralizationslog| Constructor and Description |
|---|
TanimotoDistanceMeasure() |
| 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 a,
Vector b)
Calculates the distance between two vectors.
|
configure, createParameters, getParameters, getWeights, setWeightspublic double distance(Vector a, Vector b)
a - a Vector defining a multidimensional point in some feature spaceb - a Vector defining a multidimensional point in some feature spacepublic double distance(double centroidLengthSquare,
Vector centroid,
Vector v)
DistanceMeasurecentroidLengthSquare - Square of the length of centroidcentroid - Centroid vectorCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.