entropy#

tangles.util.entropy.entropy(x: ndarray) ndarray#

Compute the discrete entropy of every column of x.

For \(x = (x_1,...,x_k)\) the result is \((h(x_1),...,h(x_k))\).

Parameters#

xnp.ndarray

The data.

Returns#

np.ndarray

The entropies of the rows of x.