@Reference(authors="S. Kullback", title="Information theory and statistics", booktitle="", bibkey="books/dover/Kullback59") @Alias(value="kli") public class KullbackLeiblerDivergenceReverseAsymmetricDistanceFunction extends AbstractNumberVectorDistanceFunction
\[KL_R(\vec{x},\vec{y}):=\sum\nolimits_i y_i\log\tfrac{y_i}{x_i} = KL(\vec{y},\vec{x})\]
This version has the arguments reversed, see
KullbackLeiblerDivergenceAsymmetricDistanceFunction
for the "forward"
version.
For a symmetric version, see JeffreyDivergenceDistanceFunction
.
Reference:
S. Kullback
Information theory and statistics
Modifier and Type | Class and Description |
---|---|
static class |
KullbackLeiblerDivergenceReverseAsymmetricDistanceFunction.Parameterizer
Parameterization class, using the static instance.
|
Modifier and Type | Field and Description |
---|---|
static KullbackLeiblerDivergenceReverseAsymmetricDistanceFunction |
STATIC
Static instance.
|
Constructor and Description |
---|
KullbackLeiblerDivergenceReverseAsymmetricDistanceFunction()
Deprecated.
Use static instance!
|
Modifier and Type | Method and Description |
---|---|
double |
distance(NumberVector v1,
NumberVector v2)
Computes the distance between two given vectors according to this distance
function.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isSymmetric()
Is this function symmetric?
|
java.lang.String |
toString() |
dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, getInputTypeRestriction
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
instantiate
isMetric, isSquared
public static final KullbackLeiblerDivergenceReverseAsymmetricDistanceFunction STATIC
@Deprecated public KullbackLeiblerDivergenceReverseAsymmetricDistanceFunction()
public double distance(NumberVector v1, NumberVector v2)
NumberVectorDistanceFunction
v1
- first vectorv2
- second vectorpublic boolean isSymmetric()
DistanceFunction
true
when symmetricpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.