R/utils.R
H.Rd
Shannon entropy for multivariate discrete data
H(px)
a vector of positive numbers sum to 1
a non-negative number
H(c(0.5,0.3,0.2)) #> [1] 1.029653