@Alias(value={"maximum","max","chebyshev","de.lmu.ifi.dbs.elki.distance.distancefunction.MaximumDistanceFunction"}) public class MaximumDistanceFunction extends LPNormDistanceFunction
NumberVectors.
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 |
MaximumDistanceFunction.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
static MaximumDistanceFunction |
STATIC
Static instance.
|
invp, p| Constructor and Description |
|---|
MaximumDistanceFunction()
Deprecated.
Use static instance!
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(NumberVector v1,
NumberVector v2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isMetric()
Is this distance function metric (satisfy the triangle inequality)
|
double |
minDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this distance
function.
|
double |
norm(NumberVector v)
Compute the norm of object obj.
|
private double |
preDistance(NumberVector v1,
NumberVector v2,
int start,
int end) |
private double |
preDistanceMBR(SpatialComparable mbr1,
SpatialComparable mbr2,
int start,
int end) |
private double |
preDistanceVM(NumberVector v,
SpatialComparable mbr,
int start,
int end) |
private double |
preNorm(NumberVector v,
int start,
int end) |
private double |
preNormMBR(SpatialComparable mbr,
int start,
int end) |
java.lang.String |
toString() |
getInputTypeRestriction, getPclone, finalize, getClass, notify, notifyAll, wait, wait, waitinstantiateisSquared, isSymmetricpublic static final MaximumDistanceFunction STATIC
@Deprecated public MaximumDistanceFunction()
STATIC instead.private double preDistance(NumberVector v1, NumberVector v2, int start, int end)
private double preDistanceVM(NumberVector v, SpatialComparable mbr, int start, int end)
private double preDistanceMBR(SpatialComparable mbr1, SpatialComparable mbr2, int start, int end)
private double preNorm(NumberVector v, int start, int end)
private double preNormMBR(SpatialComparable mbr, int start, int end)
public double distance(NumberVector v1, NumberVector v2)
PrimitiveDistanceFunctiondistance in interface NumberVectorDistanceFunction<NumberVector>distance in interface PrimitiveDistanceFunction<NumberVector>distance in class LPNormDistanceFunctionv1 - first DatabaseObjectv2 - second DatabaseObjectpublic double norm(NumberVector v)
Normnorm in interface Norm<NumberVector>norm in class LPNormDistanceFunctionv - Objectpublic double minDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDistanceFunctionminDist in interface SpatialPrimitiveDistanceFunction<NumberVector>minDist in class LPNormDistanceFunctionmbr1 - the first MBR objectmbr2 - the second MBR objectpublic boolean isMetric()
DistanceFunctionisMetric in interface DistanceFunction<NumberVector>isMetric in class LPNormDistanceFunctiontrue when metric.public java.lang.String toString()
toString in class LPNormDistanceFunctionpublic boolean equals(java.lang.Object obj)
equals in class LPNormDistanceFunctionpublic int hashCode()
hashCode in class LPNormDistanceFunctionCopyright © 2019 ELKI Development Team. License information.