public abstract class AbstractNumberVectorDistanceFunction extends java.lang.Object implements NumberVectorDistanceFunction<NumberVector>
Constructor and Description |
---|
AbstractNumberVectorDistanceFunction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
dimensionality(double[] o1,
double[] o2)
Get the common dimensionality of the two objects.
|
static int |
dimensionality(double[] o1,
double[] o2,
int expect)
Get the common dimensionality of the two objects.
|
static int |
dimensionality(double[] o1,
SpatialComparable o2)
Get the common dimensionality of the two objects.
|
static int |
dimensionality(double[] o1,
SpatialComparable o2,
int expect)
Get the common dimensionality of the two objects.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance
distance, instantiate
isMetric, isSquared, 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 / MBRjava.lang.IllegalArgumentException
- when dimensionalities are not the same.public static final int dimensionality(double[] o1, SpatialComparable o2)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRjava.lang.IllegalArgumentException
- when dimensionalities are not the same.public static final int dimensionality(double[] o1, double[] o2)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRjava.lang.IllegalArgumentException
- 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 dimensionalityjava.lang.IllegalArgumentException
- when dimensionalities are not the same.public static final int dimensionality(double[] o1, SpatialComparable o2, int expect)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRexpect
- Expected dimensionalityjava.lang.IllegalArgumentException
- when dimensionalities are not the same.public static final int dimensionality(double[] o1, double[] o2, int expect)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRexpect
- Expected dimensionalityjava.lang.IllegalArgumentException
- when dimensionalities are not the same.public static final int dimensionality(NumberVector o1, NumberVector o2)
IllegalArgumentException
otherwise.o1
- First vector / MBRo2
- Second vector / MBRjava.lang.IllegalArgumentException
- 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 dimensionalityjava.lang.IllegalArgumentException
- when dimensionalities are not the same.Copyright © 2019 ELKI Development Team. License information.