Description Usage Arguments Examples
View source: R/shannon_entropy.R
This function computes the shannon entropy of a probability distribution.
1 | shannon_entropy(pDist, log_type = "nats")
|
pDist |
a probability distribution as a vector or a matrix of probability distributions columns. |
log_type |
choose nats or bits, defaults to nats. |
1 | shannon_entropy(c(.5,.5), log_type='bits')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.