No BSD License
Nima Razavi (view profile)
13 Jul 2008
15 Jul 2008)
Calculates the Kullback-Leibler Divergence between two probability distributions
Watch this File
For the description of the divergence you can take a look at :
I have two probability matrix P and Q of size m x n and q x n each. How to calculate KL-divergence for these two matrices?
Shouldn't the log value be log2 instead of natural logarithm?
Sir, can you give a detailed description of P and Q in this function? example better.
dear sir we need kld for feature selection in MRI brain image can some one help me
Please note that the logarithms should be base 2 if calculating values in bits.
Your implementation is third of its kind on FEX: please take time to search FEX for existing code before posting.