powered by
Compute the entropy of a discrete sample
H(cl)
the entropy of the sample
vector of discrete labels
cl <- sample(2, 500, replace = TRUE) H(cl)
Run the code above in your browser using DataLab