public class SubspaceManhattanDistanceFunction extends SubspaceLPNormDistanceFunction
NumberVector
s only in specified
dimensions.Modifier and Type | Class and Description |
---|---|
static class |
SubspaceManhattanDistanceFunction.Parameterizer
Parameterization class.
|
dimensions
Constructor and Description |
---|
SubspaceManhattanDistanceFunction(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.
|
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
equals, getSelectedDimensions, setSelectedDimensions
isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSymmetric
public SubspaceManhattanDistanceFunction(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
- ObjectCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.