mdentropy.entropy

mdentropy.entropy(n_bins, rng, method, *args)

Entropy calculation

Parameters:

n_bins : int

Number of bins.

rng : list of lists

List of min/max values to bin data over.

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

Method used to calculate entropy.

args : numpy.ndarray, shape = (n_samples, ) or (n_samples, n_dims)

Data of which to calculate entropy. Each array must have the same number of samples.

Returns:

entropy : float