jensenShannon | R Documentation |
Calculate Jensen Shannon divergence between two probability distributions
jensenShannon(x, y, base = 2)
x |
Vector of counts or proportions of N elements |
y |
Second vector of counts or proportions of N elements |
base |
Base of logarithm |
Jensen-Shannon divergence
jensenShannon(1:4,4:1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.