public class SubspaceMaximumDistanceFunction extends SubspaceLPNormDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
SubspaceMaximumDistanceFunction.Parameterizer
Parameterization class.
|
dimensions, DIMS_ID
Constructor and Description |
---|
SubspaceMaximumDistanceFunction(BitSet dimensions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(NumberVector<?> v1,
NumberVector<?> v2)
Provides the Euclidean distance between two given feature vectors in the
selected dimensions.
|
double |
doubleMinDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this
distance function.
|
protected double |
doubleMinDistObject(SpatialComparable mbr,
NumberVector<?> v) |
double |
doubleNorm(NumberVector<?> obj)
Compute the norm of object obj as double value.
|
getInputTypeRestriction, getP, instantiate, isMetric, minDist, norm
distance, equals, getDistanceFactory, getSelectedDimensions, setSelectedDimensions
isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance
public SubspaceMaximumDistanceFunction(BitSet dimensions)
dimensions
- Selected dimensionspublic double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
doubleDistance
in interface PrimitiveDoubleDistanceFunction<NumberVector<?>>
doubleDistance
in class SubspaceLPNormDistanceFunction
v1
- first feature vectorv2
- second feature vectorprotected double doubleMinDistObject(SpatialComparable mbr, NumberVector<?> v)
doubleMinDistObject
in class SubspaceLPNormDistanceFunction
public double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunction
doubleMinDist
in interface SpatialPrimitiveDoubleDistanceFunction<NumberVector<?>>
doubleMinDist
in class SubspaceLPNormDistanceFunction
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic double doubleNorm(NumberVector<?> obj)
DoubleNorm
doubleNorm
in interface DoubleNorm<NumberVector<?>>
doubleNorm
in class SubspaceLPNormDistanceFunction
obj
- Object