@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 AbstractVectorDoubleDistanceFunction
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 |
doubleDistance(NumberVector<?> v1,
NumberVector<?> v2)
Computes the distance between two given Objects according to this distance
function.
|
boolean |
equals(Object obj) |
boolean |
isSymmetric()
Is this function symmetric?
|
String |
toString() |
dimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactory, getInputTypeRestriction
instantiate, isMetric
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
instantiate, isMetric
public static final KullbackLeiblerDivergenceAsymmetricDistanceFunction STATIC
@Deprecated public KullbackLeiblerDivergenceAsymmetricDistanceFunction()
public double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
PrimitiveDoubleDistanceFunction
v1
- first Objectv2
- second Objectpublic boolean isSymmetric()
DistanceFunction
isSymmetric
in interface DistanceFunction<NumberVector<?>,DoubleDistance>
isSymmetric
in class AbstractPrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>
true
when symmetric