Skip to contents

Shannon entropy for binary data

Usage

marg_H(m_px)

Arguments

m_px

a number between 0 and 1

Value

a non-negative number

Examples


marg_H(0.1)
#> [1] 0.325083