Last chance! 50% off unlimited learning
Sale ends in
A function for computing the pointwise mutual information of every entry in a table.
pmi(x, normalize = FALSE, base = 2)PMI(x, normalize = FALSE, base = 2)
A table or a (sparse) matrix.
Logical indicating whether to normalize the pointwise mutual information.
Numeric specification of the base with respect to which logarithms are computed.
An array with the pointwise mutual information of every entry.
MI
.
# 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)
pmi(tab.SndT_Fra)
# }
Run the code above in your browser using DataLab