Calculate Mutual Information
mutual_information(joint_dist, normalized = FALSE,
non_zero_column_entries = NULL)
A matrix of class "simple_triplet_matrix" or a standard dense matrix.
Defaults to FALSE. If TRUE, then the function expects a matrix which sums to one. WARNING -- this function will not check to see if the matrix sums to one if TRUE (for speed reasons).
Defaults to NULL, otherwise, a vector of length equal to the number of rows in the joint_dist recording the number of non-zero column entries for that row. Can greatly speed up computation. Must be supplied if normalized = TRUE.
The mutual information of the joint distribution.