Package gmisclib :: Module g_entropy
[frames] | no frames]

Module g_entropy

source code

This returns the entropy of a probability distribution that produced a given sample.

Functions
 
entropy_probs(p)
Entropy of a probability distribution.
source code
 
entropy_vec(p, N=None, F=1.0, Clip=0.01)
Entropy of a frequency distribution p.
source code
Variables
  __package__ = 'gmisclib'

Imports: numpy, mcmc, mcmc_helper, gpkavg, math, kl_dist


Function Details

entropy_vec(p, N=None, F=1.0, Clip=0.01)

source code 

Entropy of a frequency distribution p. Here, we assume that p is counts derived from multinomial distributed data; they are not normalized to one.