public class ManhattanDistanceMeasure extends Object implements DistanceMeasure
Modifier and Type | Method and Description |
---|---|
double |
distance(VectorWithNorm v1,
VectorWithNorm v2)
Measures the distance between two vectors.
|
static ManhattanDistanceMeasure |
getInstance() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findClosest, getInstance
public static final String NAME
public static ManhattanDistanceMeasure getInstance()
public double distance(VectorWithNorm v1, VectorWithNorm v2)
DistanceMeasure
Required: The two vectors should have the same dimension.
distance
in interface DistanceMeasure
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.