normalizedMutualInformation | R Documentation |
Compute the mutual information (MI
) which is normalized either by the
minimum/maximum partition entropy (H
)
\frac{MI(P, Q)}{\varphi(H(P), H(Q))},\ \varphi \in \{\min, \max\}
or the sum
\frac{2 \cdot MI(P, Q)}{H(P) + H(Q)}
normalizedMutualInformation(p, q, type = c("min", "max", "sum"))
## S4 method for signature 'Partition,Partition,character'
normalizedMutualInformation(p, q, type = c("min", "max", "sum"))
## S4 method for signature 'Partition,Partition,missing'
normalizedMutualInformation(p, q, type = NULL)
p |
The partition |
q |
The partition |
type |
One of "min" (default), "max" or "sum" |
normalizedMutualInformation(p = Partition, q = Partition, type = character)
: Compute given two partitions
normalizedMutualInformation(p = Partition, q = Partition, type = missing)
: Compute given two partitions with type="min"
Fabian Ball fabian.ball@kit.edu
Kvalseth1987partitionComparison
mutualInformation
, entropy
isTRUE(all.equal(normalizedMutualInformation(
new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1)), "min"),
normalizedMutualInformation(
new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1)), "max")
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.