public class SubspaceEuclideanDistanceFunction extends SubspaceLPNormDistanceFunction
NumberVector
s only in specified
dimensions.Modifier and Type | Class and Description |
---|---|
static class |
SubspaceEuclideanDistanceFunction.Parameterizer
Parameterization class.
|
dimensions
Constructor and Description |
---|
SubspaceEuclideanDistanceFunction(long[] dimensions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(NumberVector v1,
NumberVector v2)
Constructor.
|
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 SubspaceEuclideanDistanceFunction(long[] dimensions)
dimensions
- Selected dimensionspublic double distance(NumberVector v1, NumberVector v2)
distance
in interface NumberVectorDistanceFunction<NumberVector>
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class SubspaceLPNormDistanceFunction
v1
- first feature vectorv2
- second feature vectorprotected 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.