Compute the entropy of a discrete sample
H(cl)
cl
the entropy of the sample
cl <- sample(2, 500, replace = TRUE) H(cl)
Useful links