+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

hoi.core.entropy_hist

+ +
+
+ +
+

Contents

+
+ +
+
+
+ + + + +
+ +
+

hoi.core.entropy_hist#

+
+
+hoi.core.entropy_hist(x: array, base: float = 2, n_bins: int = 8) array[source]#
+

Entropy using binning.

+
+
Parameters:
+
+
xarray_like

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

+
+
basefloat | 2

The logarithmic base to use. Default is base 2.

+
+
n_binsint | 8

The number of bin to be considered in the binarization process

+
+
+
+
Returns:
+
+
hxfloat

Entropy of x (in bits)

+
+
+
+
+
+ +
+ + +
+ + + + + + + + +
+ + + +
+ + +
+
+ + +
+ + +