public class JensenShannonDivergenceDistanceFunction extends JeffreyDivergenceDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
JensenShannonDivergenceDistanceFunction.Parameterizer
Parameterization class, using the static instance.
|
Modifier and Type | Field and Description |
---|---|
static JensenShannonDivergenceDistanceFunction |
STATIC
Static instance.
|
Constructor and Description |
---|
JensenShannonDivergenceDistanceFunction()
Deprecated.
Use static instance!
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(NumberVector<?> v1,
NumberVector<?> v2)
Computes the distance between two given Objects according to this distance
function.
|
String |
toString() |
doubleMinDist, equals
instantiate, minDist
dimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactory, getInputTypeRestriction
isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
distance, getInputTypeRestriction
getDistanceFactory, isMetric, isSymmetric
public static final JensenShannonDivergenceDistanceFunction STATIC
@Deprecated public JensenShannonDivergenceDistanceFunction()
public double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
PrimitiveDoubleDistanceFunction
doubleDistance
in interface PrimitiveDoubleDistanceFunction<NumberVector<?>>
doubleDistance
in class JeffreyDivergenceDistanceFunction
v1
- first Objectv2
- second Objectpublic String toString()
toString
in class JeffreyDivergenceDistanceFunction