public class WeightedManhattanDistanceMeasure extends WeightedDistanceMeasure
Parametered.ParameteredGeneralizationslog| Constructor and Description |
|---|
WeightedManhattanDistanceMeasure() |
| 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 p1,
Vector p2)
Returns the distance metric applied to the arguments
|
configure, createParameters, getParameters, getWeights, setWeightspublic double distance(Vector p1, Vector p2)
DistanceMeasurep1 - a Vector defining a multidimensional point in some feature spacep2 - 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.