powered by
entropy.plugin
entropy.plugin(freqs, unit=c("log", "log2", "log10"))
entropy.Dirichlet
entropy.empirical
# load entropy library library("entropy") # some frequencies freqs = c(0.2, 0.1, 0.15, 0.05, 0, 0.3, 0.2) # and corresponding entropy entropy.plugin(freqs)
Run the code above in your browser using DataLab