joint_entropy#

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

Compute the discrete joint entropy of x.

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

Parameters#

x

The data.

Returns#

float

The joint entropy of (the rows of) x.