powered by
Discrete multivariate Mutual Information
mi_disc(df, log = "log2", normalize = FALSE)
Datafame of type Integer.
String argument in the set ("log2", "loge","log10"), which indicates the log function to use. The log2 is used by default.
Logical argument (FALSE by default) for the option of normalizing the mutual information by dividing it by the joint entropy.
Computes the Mutual Information between columns of a dataframe.
# NOT RUN { library (NlinTS) df = data.frame (c(3,2,4,4,3), c(1,4,4,3,3)) mi = mi_disc (df) print (mi) # }
Run the code above in your browser using DataLab