powered by
Calculate the Shannon's entropy.
entropy(x)
a numeric vector.
numeric. entropy
# NOT RUN { set.seed(123) x <- sample(1:10, 20, replace = TRUE) entropy(x) # }
Run the code above in your browser using DataLab