entropy | R Documentation |
Computes standard and normalized entropy based on Shannon and Weavers' mathematical theory of communication (1948).
entropy(x = NULL, normalize = FALSE)
x |
A vector for entropy computation |
normalize |
Default is FALSE. Set |
entropy value
entropy(x = c(0,0,1,1))
entropy(x = c(0,0,0,0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.