DomainType
- The type for the domain of the two distributions which this class is comparing.@PublicationReference(author="Wikipedia", title="Kullback--Leibler Divergence", type=WebPage, year=2014, url="http://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence") public class KullbackLeiblerDivergence<DomainType> extends java.lang.Object
Constructor and Description |
---|
KullbackLeiblerDivergence(DiscreteDistribution<DomainType> firstDistribution,
DiscreteDistribution<DomainType> secondDistribution)
Basic constructor to find the Kullback--Leibler Divergence between the two supplied distributions.
|
Modifier and Type | Method and Description |
---|---|
double |
compute()
Computes the Kullback--Leibler Divergence.
|
java.util.Set<? extends DomainType> |
getDomain()
Gets the domain of the distributions.
|
public KullbackLeiblerDivergence(DiscreteDistribution<DomainType> firstDistribution, DiscreteDistribution<DomainType> secondDistribution)
firstDistribution
- secondDistribution
- public java.util.Set<? extends DomainType> getDomain()
public double compute()