pmi | R Documentation |
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)
x |
A table or a (sparse) matrix. |
normalize |
Logical indicating whether to normalize the pointwise mutual information. |
base |
Numeric specification of the base with respect to which logarithms are computed. |
An array with the pointwise mutual information of every entry.
MI
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.