public class SubspaceMaximumDistanceFunction extends SubspaceLPNormDistanceFunction
NumberVector
s only in specified
dimensions.Modifier and Type | Class and Description |
---|---|
static class |
SubspaceMaximumDistanceFunction.Parameterizer
Parameterization class.
|
dimensions
Constructor and Description |
---|
SubspaceMaximumDistanceFunction(long[] dimensions)
Constructor.
|
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() |
double |
minDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this distance
function.
|
protected double |
minDistObject(SpatialComparable mbr,
NumberVector v) |
double |
norm(NumberVector obj)
Compute the norm of object obj.
|
getInputTypeRestriction, getP, instantiate, isMetric
getSelectedDimensions, setSelectedDimensions
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isSquared, isSymmetric
public SubspaceMaximumDistanceFunction(long[] dimensions)
dimensions
- Selected dimensionspublic double distance(NumberVector v1, NumberVector v2)
PrimitiveDistanceFunction
distance
in interface NumberVectorDistanceFunction<NumberVector>
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class SubspaceLPNormDistanceFunction
v1
- first DatabaseObjectv2
- second DatabaseObjectprotected double minDistObject(SpatialComparable mbr, NumberVector v)
minDistObject
in class SubspaceLPNormDistanceFunction
public double minDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDistanceFunction
minDist
in interface SpatialPrimitiveDistanceFunction<NumberVector>
minDist
in class SubspaceLPNormDistanceFunction
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic double norm(NumberVector obj)
Norm
norm
in interface Norm<NumberVector>
norm
in class SubspaceLPNormDistanceFunction
obj
- Objectpublic boolean equals(java.lang.Object obj)
equals
in class SubspaceLPNormDistanceFunction
public int hashCode()
hashCode
in class SubspaceLPNormDistanceFunction
Copyright © 2019 ELKI Development Team. License information.