Computes the mutual information between all pairs of variables in the matrix (along the columns). Variables are discretised using the adaptive partitioning algorithm

mi.ap(mat)

Arguments

mat

a numeric matrix

Value

matrix of pairwise mutual information estimates

Examples

x <- matrix(rnorm(200), 100, 2)
mi.ap(x)
#>          1        2
#> 1 2.770249 0.000000
#> 2 0.000000 2.770249