Description Usage Arguments Value
View source: R/mutual_information.R
Calculate Mutual Information
1 2 | mutual_information(joint_dist, normalized = FALSE,
non_zero_column_entries = NULL)
|
joint_dist |
A matrix of class "simple_triplet_matrix" or a standard dense matrix. |
normalized |
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). |
non_zero_column_entries |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.