hoi.core.entropy_bin — HOI 0.0.5 documentation (original) (raw)
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)