Learn R Programming

svs (version 3.0.0)

MI: Mutual Information

Description

A function for computing the mutual information.

Usage

MI(x, base = 2)

mi(x, base = 2)

Arguments

x

A table or a (sparse) matrix.

base

Numeric specification of the base with respect to which logarithms are computed.

Value

A numeric value containing the mutual information.

See Also

pmi.

Examples

Run this code
# NOT RUN {
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
   header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8",
   stringsAsFactors = FALSE)
tab.SndT_Fra <- table(SndT_Fra)
MI(tab.SndT_Fra)
# }

Run the code above in your browser using DataLab