Description Usage Arguments Note See Also
For more than two distributions, we need a function to compute the Entropy H(v)
1 | JSD.matrix(w, M)
|
w |
A vector of weights which should sum up to 1 |
M |
a matrix with the input distributions as columns |
Adapted from the discussion http://stackoverflow.com/questions/11226627/jensen-shannon-divergence-in-r
Other utils: H
, JSD
,
KLD
, sample_antoniak
,
sample_dirichlet
,
sample_multinomial
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.