Description Usage Arguments Details Value Note Author(s)
View source: R/KullbLeiblKLD.R
Kullback-Leibler divergence KLD of discrete distributions
1 | KullbLeiblKLD(P,Q,sym=1)
|
P |
two distributions having the same dirccrete range unique([P,Q]) |
Q |
two distributions having the same dirccrete range unique([P,Q]) |
sym |
default ==1: if sym ==1 then the symmetical KLD is returned |
NaN in the distributions are ignored. not defined for zero probabilities, replace with very small values,
KLD |
Kullback-Leibler divergence |
p |
frequency counts of distributions |
q |
frequency counts of distributions |
x |
the unique discrete x values of P and Q: x = unique([P;Q]) |
reimplemented from matlab
Michael Thrun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.