public class SparseManhattanDistanceFunction extends SparseLPNormDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
SparseManhattanDistanceFunction.Parameterizer
Parameterizer
|
Modifier and Type | Field and Description |
---|---|
static SparseManhattanDistanceFunction |
STATIC
Static instance
|
Constructor and Description |
---|
SparseManhattanDistanceFunction()
Deprecated.
Use static instance instead.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(SparseNumberVector<?> v1,
SparseNumberVector<?> v2)
Computes the distance between two given Objects according to this distance
function.
|
double |
doubleNorm(SparseNumberVector<?> v1)
Compute the norm of object obj as double value.
|
distance, getDistanceFactory, getInputTypeRestriction, isMetric, norm
instantiate, isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate, isSymmetric
public static final SparseManhattanDistanceFunction STATIC
@Deprecated public SparseManhattanDistanceFunction()
public double doubleDistance(SparseNumberVector<?> v1, SparseNumberVector<?> v2)
PrimitiveDoubleDistanceFunction
doubleDistance
in interface PrimitiveDoubleDistanceFunction<SparseNumberVector<?>>
doubleDistance
in class SparseLPNormDistanceFunction
v1
- first Objectv2
- second Objectpublic double doubleNorm(SparseNumberVector<?> v1)
DoubleNorm
doubleNorm
in interface DoubleNorm<SparseNumberVector<?>>
doubleNorm
in class SparseLPNormDistanceFunction
v1
- Object