knnmi.all: Parallel Mutual Information Estimation Between All Matrix...

Description Usage Arguments Details References See Also Examples

View source: R/knnmi.R

Description

A function that computes the mutual information between all pairs of rows of matrix mat using entropy estimates from K-nearest neighbor distances.

Usage

1
knnmi.all(mat, k=3, noise=1e-12)

Arguments

mat

a numeric matrix (for the reconstruction of gene regulatory networks, genes on rows and samples on columns).

k

the number of nearest neighbors to consider to estimate the mutual information. Must be less than the number of columns of mat.

noise

the magnitude of the random noise added to break ties.

Details

The function adds a small random noise to the data in order to break ties due to limited numerical precision.

By default, the function uses all the available cores. You can set the actual number of threads used to N by exporting the environment variable OMP_NUM_THREADS=N.

References

Kraskov, Alexander and Stogbauer, Harald and Grassberger, Peter. Estimating mutual information. Phys. Rev. E, 2004.

See Also

knnmi

knnmi.cross

Examples

1
2
mat <- matrix(rnorm(1000), nrow=10)
knnmi.all(mat, 5)

parmigene documentation built on May 29, 2017, 11:58 a.m.