conditionalShannonEntropy {SCCI} | R Documentation |
Calculates the Shannon entropy of a discrete random variable X
conditioned on a discrete (possibly multivariate) random variable Y
.
conditionalShannonEntropy(x, y)
x |
A discrete vector. |
y |
A data frame. |
set.seed(1)
x = round((runif(1000, min=0, max=5)))
Y = data.frame(round((runif(1000, min=0, max=5))), round((runif(1000, min=0, max=5))))
conditionalShannonEntropy(x=x,y=Y) ## 2.411972