mutualInfo {bioDist}R Documentation

Mutual Information

Description

Calculate mutual information via binning

Usage

mutualInfo(x, nbin = 10,  diag = FALSE, upper = FALSE)
MIdist(x, nbin = 10,  diag = FALSE, upper = FALSE)

Arguments

x an n by p matrix
nbin number of bins to calculate discrete probabilities
diag if TRUE, diagonal of the distance matrix will be displayed
upper if TRUE, upper triangle of the distance matrix will be displayed

Details

For mutualInfo each row of x is divided into nbin groups and then the mutual information is computed, treating the data as if they were discrete.

For MIdist we use the transformation proposed by Joe (1989), delta* = (1 - exp(-2 delta))^.5 where delta is the mutual information. The MIdist is then 1-delta*. Joe argues that this measure is then similar to Kendall's tau, tau.dist.

Value

An object of class dist which contains the pairwise distances.

Author(s)

Robert Gentleman

See Also

dist, KLdist.matrix, cor.dist, KLD.matrix

Examples

 x <- matrix(rnorm(100),nrow=5)
 mutualInfo(x, nbin=3)

[Package bioDist version 1.2.0 Index]