pairwise_mutual_information#

tangles.util.entropy.pairwise_mutual_information(data: ndarray) ndarray#

Compute a matrix that contains the pairwise mutual information between the columns of data.

Parameters#

datanp.ndarray

The data.

Returns#

np.ndarray

A matrix of shape \((k, k)\), where \(k\) is the number of columns in data. The entry at \((i, j)\) is the mutual information between columns \(i\) and \(j\) of data.