| entropy {contingency} | R Documentation |
Calculate entropy of discrete distribution
Description
Calculate entropy of discrete distribution
Usage
entropy(p, ...)
## Default S3 method:
entropy(p, ...)
## S3 method for class 'array'
entropy(p, margin, ...)
## S3 method for class 'tables'
entropy(p, margin, ...)
Arguments
p |
non-negative numeric vector |
... |
other arguments to methods |
margin |
margin to consider |
Value
A numeric value of the entopy, or vector of entropies.
Methods (by class)
-
default: Default method for vectors -
array: Method for arrays -
tables: Method fortablesobject
[Package contingency version 0.0.10 Index]