public class SparseManhattanDistance extends Object implements Metric<SparseArray>
| Constructor and Description |
|---|
SparseManhattanDistance()
Constructor.
|
SparseManhattanDistance(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 SparseManhattanDistance()
public SparseManhattanDistance(double[] weight)
weight - the weight vector.public double d(SparseArray x, SparseArray y)
Distanced in interface Distance<SparseArray>Copyright © 2015. All rights reserved.