Kldistance¶
- KLDis(P, Q)[source]¶
- Calculates the Kullback-Leibler Distance of two discrete probability distributions. P and Q are automatically normalised to have the sum of one on rows have the length of one at each. - USAGE:
- dist = KLDis (P, Q) 
- INPUTS:
- P = n x nbins 
- Q = 1 x nbins or n x nbins (one to one) 
 
- OUTPUTS:
- dist = n x 1