public class ArcCosineDistanceFunction extends AbstractCosineDistanceFunction
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.
|
boolean |
equals(Object obj) |
String |
toString() |
angle, angleSparse, instantiate
distance, getDistanceFactory, getInputTypeRestriction
isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 vector