entropy | R Documentation |
Calculate the Shannon's entropy.
entropy(x)
x |
a numeric vector. |
numeric. entropy
set.seed(123)
x <- sample(1:10, 20, replace = TRUE)
entropy(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.