Description Usage Arguments Details Value Note Author(s) References Examples
Calculates the Shannon entropy for a probability distribution
1 |
p |
A vector of probabilities (must sum to ~1) |
None
Returns a numeric value for the Shannon entropy of the supplied probability distribution
None
Loyal A. Goff
None
1 2 3 | x<-sample(1:500,50)
p<-x/sum(x)
shannon.entropy(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.