MI: Mutual Information

Description Usage Arguments Value See Also Examples

View source: R/svs.r

Description

A function for computing the mutual information.

Usage

1
2
3
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

1
2
3
4
5
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)

svs documentation built on Nov. 10, 2020, 1:09 a.m.