public class SparseEuclideanDistance extends java.lang.Object implements Metric<SparseArray>
| Constructor and Description |
|---|
SparseEuclideanDistance()
Constructor.
|
SparseEuclideanDistance(double[] weight)
Constructor with a given weight vector.
|
| Modifier and Type | Method and Description |
|---|---|
double |
d(SparseArray x,
SparseArray y)
Returns the distance measure between two objects.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, applyAsDouble, D, Dpublic SparseEuclideanDistance()
public SparseEuclideanDistance(double[] weight)
weight - the weight vector.public java.lang.String toString()
toString in class java.lang.Objectpublic double d(SparseArray x, SparseArray y)
Distanced in interface Distance<SparseArray>