Description Usage Arguments Value Examples
Mutual information
1  | mutual.information(x, y = NULL, file = "None")
 | 
x | 
 a vector, matrix, or data.frame.  | 
y | 
 a vector. y must be NULL if x is a matrix or a data.frame.  | 
file | 
 In case of x been a data.frame or matrix, represent the name of output file for saving mutual information plot.  | 
In case of x been a data.frame or matrix, mutual information of all variables/columns in x. Otherwise, mutual information of x and y.
1 2 3 4 5  | df <- data.frame("V1" = sample.int(2,5,replace=TRUE), "V2" =sample.int(2,5,replace=TRUE) , "V3" = sample.int(2,5,replace=TRUE), "V4" = sample.int(2,5,replace=TRUE),  "V5" = sample.int(2,5,replace=TRUE), "V6" = sample.int(2,5,replace=TRUE), "V7" = sample.int(2,5,replace=TRUE), "V8" = sample.int(2,5,replace=TRUE))
x <- sample.int(2, 5,replace=TRUE)
y <- sample.int(2, 5,replace=TRUE)
mutual.information(df, file ="mutualInformation")
mutual.information(x = x, y = y)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.