@Alias(value="arccos") public class ArcCosineDistanceFunction extends AbstractSpatialDoubleDistanceFunction
arccos(<v1,v2>)
.Modifier and Type | Class and Description |
---|---|
static class |
ArcCosineDistanceFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static ArcCosineDistanceFunction |
STATIC
Static instance
|
Constructor and Description |
---|
ArcCosineDistanceFunction()
Deprecated.
Use static instance!
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(NumberVector<?> v1,
NumberVector<?> v2)
Computes the cosine distance for two given feature vectors.
|
double |
doubleMinDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this
distance function.
|
boolean |
equals(Object obj) |
SimpleTypeInformation<? super NumberVector<?>> |
getInputTypeRestriction()
Get the input data type of the function.
|
String |
toString() |
instantiate, minDist
dimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactory
isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
distance
getDistanceFactory, isMetric, isSymmetric
public static final ArcCosineDistanceFunction STATIC
@Deprecated public ArcCosineDistanceFunction()
public double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
arccos(<v1,v2>)
.v1
- first feature vectorv2
- second feature vectorpublic double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunction
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic SimpleTypeInformation<? super NumberVector<?>> getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<NumberVector<?>,DoubleDistance>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>
getInputTypeRestriction
in class AbstractVectorDoubleDistanceFunction