marg_H function

Shannon entropy for binary data

Shannon entropy for binary data

marg_H(m_px)

Arguments

  • m_px: a number between 0 and 1

Returns

a non-negative number

Examples

marg_H(0.1)
  • Maintainer: Zhenke Wu
  • License: MIT + file LICENSE
  • Last published: 2024-01-30