GrassbergerEntropyEstimator

GrassbergerEntropyEstimator#

class infomeasure.estimators.entropy.GrassbergerEntropyEstimator(*args, **kwargs)[source]

Bases: DiscreteHEstimator

Discrete Grassberger entropy estimator.

\[\hat{H}_{\text{Gr88}} = \sum_i \frac{n_i}{H} \left(\log(N) - \psi(n_i) - \frac{(-1)^{n_i}}{n_i + 1} \right)\]

\(\hat{H}_{\text{Gr88}}\) is the Grassberger entropy, where \(n_i\) are the counts, \(H\) is the total number of observations \(N\), and \(\psi\) is the digamma function [Gra08, Gra88].

Attributes:
*dataarray_like

The data used to estimate the entropy.