public abstract class AbstractNumberVectorDistanceFunction extends AbstractPrimitiveDistanceFunction<NumberVector> implements NumberVectorDistanceFunction<NumberVector>
Constructor and Description |
---|
AbstractNumberVectorDistanceFunction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
dimensionality(NumberVector o1,
NumberVector o2)
Get the common dimensionality of the two objects.
|
static int |
dimensionality(NumberVector o1,
NumberVector o2,
int expect)
Get the common dimensionality of the two objects.
|
static int |
dimensionality(SpatialComparable o1,
SpatialComparable o2)
Get the common dimensionality of the two objects.
|
static int |
dimensionality(SpatialComparable o1,
SpatialComparable o2,
int expect)
Get the common dimensionality of the two objects.
|
SimpleTypeInformation<? super NumberVector> |
getInputTypeRestriction()
Get the input data type of the function.
|
distance, instantiate, isMetric, isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance
distance
instantiate, isMetric, isSymmetric
public AbstractNumberVectorDistanceFunction()
public SimpleTypeInformation<? super NumberVector> getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<NumberVector>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<NumberVector>
public static final int dimensionality(SpatialComparable o1, SpatialComparable o2)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRIllegalArgumentException
- when dimensionalities are not the same.public static final int dimensionality(SpatialComparable o1, SpatialComparable o2, int expect)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRexpect
- Expected dimensionalityIllegalArgumentException
- when dimensionalities are not the same.public static final int dimensionality(NumberVector o1, NumberVector o2)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRIllegalArgumentException
- when dimensionalities are not the same.public static final int dimensionality(NumberVector o1, NumberVector o2, int expect)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRexpect
- Expected dimensionalityIllegalArgumentException
- when dimensionalities are not the same.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.