Description
Computes the Jensen-Shannon 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 Jensen-Shannon divergence between two distributions with a finite number of states. The inputs can be vectors of probabilities or log-probabilities (natural logarithm).
d = maxent.djs(p1,p2)