@Alias(value={"minimum","min","de.lmu.ifi.dbs.elki.distance.distancefunction.MinimumDistanceFunction"}) public class MinimumDistanceFunction extends AbstractSpatialDoubleDistanceNorm
Modifier and Type | Class and Description |
---|---|
static class |
MinimumDistanceFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static MinimumDistanceFunction |
STATIC
Static instance.
|
Constructor and Description |
---|
MinimumDistanceFunction()
Deprecated.
Use static instance!
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(NumberVector<?> v1,
NumberVector<?> v2)
Computes the distance between two given Objects according to this distance
function.
|
double |
doubleMinDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this
distance function.
|
double |
doubleNorm(NumberVector<?> v)
Compute the norm of object obj as double value.
|
boolean |
equals(Object obj) |
boolean |
isMetric()
Is this distance function metric (in particular, does it satisfy the
triangle equation?)
|
String |
toString() |
instantiate, minDist
norm
dimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactory, getInputTypeRestriction
isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
distance, getInputTypeRestriction
getDistanceFactory, isSymmetric
public static final MinimumDistanceFunction STATIC
@Deprecated public MinimumDistanceFunction()
public double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
PrimitiveDoubleDistanceFunction
v1
- first Objectv2
- second Objectpublic double doubleNorm(NumberVector<?> v)
DoubleNorm
v
- Objectpublic double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunction
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<NumberVector<?>,DoubleDistance>
isMetric
in class AbstractPrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>
true
when metric.