hoi.core.entropy_bin

Contents

hoi.core.entropy_bin#

hoi.core.entropy_bin(x: array, base: int = 2) array[source]#

Entropy using binning.

Parameters:
xarray_like

Input data of shape (n_features, n_samples). The data should already be discretize

baseint | 2

The logarithmic base to use. Default is base 2.

Returns:
hxfloat

Entropy of x (in bits)