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 May 6, 2024, 11:19 p.m.