@Alias(value="de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.DimensionsSelectingEuclideanDistanceFunction") public class SubspaceEuclideanDistanceFunction extends SubspaceLPNormDistanceFunction
NumberVectors 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.
|
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, isMetricgetSelectedDimensions, setSelectedDimensionsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisSquared, isSymmetricpublic 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 SubspaceLPNormDistanceFunctionv1 - first feature vectorv2 - second feature vectorprotected double minDistObject(SpatialComparable mbr, NumberVector v)
minDistObject in class SubspaceLPNormDistanceFunctionpublic double minDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDistanceFunctionminDist in interface SpatialPrimitiveDistanceFunction<NumberVector>minDist in class SubspaceLPNormDistanceFunctionmbr1 - the first MBR objectmbr2 - the second MBR objectpublic double norm(NumberVector obj)
Normnorm in interface Norm<NumberVector>norm in class SubspaceLPNormDistanceFunctionobj - Objectpublic boolean equals(java.lang.Object obj)
equals in class SubspaceLPNormDistanceFunctionpublic int hashCode()
hashCode in class SubspaceLPNormDistanceFunctionCopyright © 2019 ELKI Development Team. License information.