ZhangMIEstimator

ZhangMIEstimator#

class infomeasure.estimators.mutual_information.ZhangMIEstimator(*data, cond=None, offset: int = 0, base: int | float | str = 'e', **kwargs)[source]

Bases: BaseZhangMIEstimator, MutualInformationEstimator

Estimator for the Zhang mutual information.

Zhang mutual information estimator using the entropy combination formula.

Attributes:
*dataarray_like, shape (n_samples,)

The data used to estimate the mutual information. You can pass an arbitrary number of data arrays as positional arguments.

offsetint, optional

Number of positions to shift the data arrays relative to each other. Delay/lag/shift between the variables. Default is no shift.

Notes

This estimator uses the Zhang entropy estimator to compute mutual information through the entropy combination formula.

Note that the entropy combination formula is used (_generic_mi_from_entropy) not a dedicated implementation as other MI might have.