powered by
Calculate entropy of discrete distribution
entropy(p, ...)# S3 method for default entropy(p, ...)# S3 method for array entropy(p, margin, ...)# S3 method for tables entropy(p, margin, ...)
# S3 method for default entropy(p, ...)
# S3 method for array entropy(p, margin, ...)
# S3 method for tables entropy(p, margin, ...)
A numeric value of the entopy, or vector of entropies.
non-negative numeric vector
other arguments to methods
margin to consider
default: Default method for vectors
default
array: Method for arrays
array
tables: Method for tables object
tables