H: Shannon entropy for multivariate discrete data

View source: R/utils.R

HR Documentation

Shannon entropy for multivariate discrete data

Description

Shannon entropy for multivariate discrete data

Usage

H(px)

Arguments

px

a vector of positive numbers sum to 1

Value

a non-negative number

Examples


H(c(0.5,0.3,0.2))


zhenkewu/baker documentation built on March 17, 2022, 9:54 p.m.