entropy | R Documentation |
Calculate entropy of discrete distribution
entropy(p, ...)
## Default S3 method:
entropy(p, ...)
## S3 method for class 'array'
entropy(p, margin, ...)
## S3 method for class 'tables'
entropy(p, margin, ...)
p |
non-negative numeric vector |
... |
other arguments to methods |
margin |
margin to consider |
A numeric value of the entopy, or vector of entropies.
entropy(default)
: Default method for vectors
entropy(array)
: Method for arrays
entropy(tables)
: Method for tables
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.