Description
Computes the Kullback-Leibler divergence between two distributions with a finite number of states. The inputs can be vectors of probabilities or log-probabilities (natural logarithm).
Maximum Entropy toolbox for MATLAB
Computes the Kullback-Leibler divergence between two distributions with a finite number of states. The inputs can be vectors of probabilities or log-probabilities (natural logarithm).
d = maxent.dkl(p1,p2)