@Alias(value="de.lmu.ifi.dbs.elki.distance.distancefunction.SparseMaximumDistanceFunction") public class SparseMaximumDistanceFunction extends SparseLPNormDistanceFunction
SparseNumberVector
s.
The maximum distance is defined as:
\[ \text{Maximum}(\vec{x},\vec{y}) := \max_i |x_i-y_i| \]
and can be seen as limiting case of the LPNormDistanceFunction
for \( p \rightarrow \infty \).Modifier and Type | Class and Description |
---|---|
static class |
SparseMaximumDistanceFunction.Parameterizer
Parameterizer
|
Modifier and Type | Field and Description |
---|---|
static SparseMaximumDistanceFunction |
STATIC
Static instance
|
Constructor and Description |
---|
SparseMaximumDistanceFunction()
Deprecated.
Use static instance
|
Modifier and Type | Method and Description |
---|---|
double |
distance(SparseNumberVector v1,
SparseNumberVector v2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
double |
norm(SparseNumberVector v1)
Compute the norm of object obj.
|
getInputTypeRestriction, isMetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate
isSquared, isSymmetric
public static final SparseMaximumDistanceFunction STATIC
@Deprecated public SparseMaximumDistanceFunction()
STATIC
instead.public double distance(SparseNumberVector v1, SparseNumberVector v2)
PrimitiveDistanceFunction
distance
in interface PrimitiveDistanceFunction<SparseNumberVector>
distance
in class SparseLPNormDistanceFunction
v1
- first DatabaseObjectv2
- second DatabaseObjectpublic double norm(SparseNumberVector v1)
Norm
norm
in interface Norm<SparseNumberVector>
norm
in class SparseLPNormDistanceFunction
v1
- ObjectCopyright © 2019 ELKI Development Team. License information.