mdentropy.nmutinf

mdentropy.nmutinf(n_bins, x, y, rng=None, method='knn')

Normalized mutual information calculation

Parameters:

n_bins : int

Number of bins.

x : array_like, shape = (n_samples, n_dim)

Independent variable

y : array_like, shape = (n_samples, n_dim)

Independent variable

rng : list

List of min/max values to bin data over.

method : {‘kde’, ‘chaowangjost’, ‘grassberger’, ‘knn’, None}

Method used to calculate entropy.

Returns:

entropy : float