mi_disc: Discrete multivariate Mutual Information

Description Usage Arguments Details Examples

Description

Discrete multivariate Mutual Information

Usage

1
mi_disc(df, log = "log2", normalize = FALSE)

Arguments

df

Datafame of type Integer.

log

String argument in the set ("log2", "loge","log10"), which indicates the log function to use. The log2 is used by default.

normalize

Logical argument (FALSE by default) for the option of normalizing the mutual information by dividing it by the joint entropy.

Details

Computes the Mutual Information between columns of a dataframe.

Examples

1
2
3
4
library (NlinTS)
df = data.frame (c(3,2,4,4,3), c(1,4,4,3,3))
mi = mi_disc (df)
print (mi)

Example output

Loading required package: Rcpp
[1] 0.7219281

NlinTS documentation built on Feb. 2, 2021, 9:07 a.m.