@Reference(authors="S. Kullback", title="Information theory and statistics", booktitle="Information theory and statistics, Courier Dover Publications, 1997.") @Alias(value="kl") public class KullbackLeiblerDivergenceAsymmetricDistanceFunction extends AbstractNumberVectorDistanceFunction
KullbackLeiblerDivergenceReverseAsymmetricDistanceFunction
.
For a symmetric version, see JeffreyDivergenceDistanceFunction
.
Reference:
S. Kullback
Information theory and statistics
Courier Dover Publications, 1997.
Modifier and Type | Class and Description |
---|---|
static class |
KullbackLeiblerDivergenceAsymmetricDistanceFunction.Parameterizer
Parameterization class, using the static instance.
|
Modifier and Type | Field and Description |
---|---|
static KullbackLeiblerDivergenceAsymmetricDistanceFunction |
STATIC
Static instance.
|
Constructor and Description |
---|
KullbackLeiblerDivergenceAsymmetricDistanceFunction()
Deprecated.
Use static instance!
|
Modifier and Type | Method and Description |
---|---|
double |
distance(NumberVector v1,
NumberVector v2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
boolean |
equals(Object obj) |
boolean |
isSymmetric()
Is this function symmetric?
|
String |
toString() |
dimensionality, dimensionality, dimensionality, dimensionality, getInputTypeRestriction
instantiate, isMetric
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
instantiate, isMetric
public static final KullbackLeiblerDivergenceAsymmetricDistanceFunction STATIC
@Deprecated public KullbackLeiblerDivergenceAsymmetricDistanceFunction()
public double distance(NumberVector v1, NumberVector v2)
PrimitiveDistanceFunction
distance
in interface NumberVectorDistanceFunction<NumberVector>
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class AbstractPrimitiveDistanceFunction<NumberVector>
v1
- first DatabaseObjectv2
- second DatabaseObjectpublic boolean isSymmetric()
DistanceFunction
isSymmetric
in interface DistanceFunction<NumberVector>
isSymmetric
in class AbstractPrimitiveDistanceFunction<NumberVector>
true
when symmetricCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.