joint_shannon_entropy {msu} | R Documentation |
The joint Shannon entropy provides an estimation of the measure of uncertainty between two random variables (see https://en.wikipedia.org/wiki/Joint_entropy).
joint_shannon_entropy(x, y)
joint_H(x, y)
x |
A factor as the represented categorical variable. |
y |
A factor as the represented categorical variable. |
Joint Shannon entropy estimation for variables x
and y
.
shannon_entropy
for the entropy for a
single variable and
multivar_joint_shannon_entropy
for the entropy
associated with more than two random variables.
joint_shannon_entropy(factor(c(0,0,1,1)), factor(c(0,1,0,1)))
joint_shannon_entropy(factor(c('a','b','c')), factor(c('c','b','a')))
## Not run:
joint_shannon_entropy(1)
joint_shannon_entropy(c('a','b'), c('d','e'))
## End(Not run)