mdentropy.mutinf¶
-
mdentropy.
mutinf
(n_bins, x, y, rng=None, method='knn')¶ 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