H: Shannon entropy for multivariate discrete data

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Shannon entropy for multivariate discrete data

Usage

1
H(px)

Arguments

px

a vector of positive numbers sum to 1

Value

a non-negative number

Examples

1
H(c(0.5,0.3,0.2))

baker documentation built on Feb. 2, 2022, 9:06 a.m.