Learn R Programming

baker (version 1.0.4)

marg_H: Shannon entropy for binary data

Description

Shannon entropy for binary data

Usage

marg_H(m_px)

Value

a non-negative number

Arguments

m_px

a number between 0 and 1

Examples

Run this code

marg_H(0.1)

Run the code above in your browser using DataLab