public class SparseMinkowskiDistance extends Object implements Metric<SparseArray>
| Constructor and Description |
|---|
SparseMinkowskiDistance(int p)
Constructor.
|
SparseMinkowskiDistance(int p,
double[] weight)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
d(SparseArray x,
SparseArray y)
Returns the distance measure between two objects.
|
String |
toString() |
public SparseMinkowskiDistance(int p)
public SparseMinkowskiDistance(int p,
double[] weight)
weight - the weight vector.public double d(SparseArray x, SparseArray y)
Distanced in interface Distance<SparseArray>Copyright © 2015. All rights reserved.