The function returns the binary entropy of a probability mass function.

  $H=-\sum\limits_i Pr(i)*log_2(Pr(i))$
  $H=-\sum\limits_{ij} Pr(i,j)*log_2(Pr(i,j))$

  After starting the main routine just type the following command at the
  prompt:
  H=hbpmf(Pr);

  Input:
  Pr   is a probability mass function. The sum of all values Pr(a) could be 1.0.
       Pr can be a vector or matrix.

  Output:
  H    The binary entropy of a probability mass function.


  For help, bug reports and feature suggestions, please visit:
  http://nongnu.org/bsltl/

Package: bsltl