Learn R Programming

baker (version 1.0.4)

H: Shannon entropy for multivariate discrete data

Description

Shannon entropy for multivariate discrete data

Usage

H(px)

Value

a non-negative number

Arguments

px

a vector of positive numbers sum to 1

Examples

Run this code

H(c(0.5,0.3,0.2))

Run the code above in your browser using DataLab