entropy.plugin.Rdentropy.plugin computes the Shannon entropy H
of a discrete random variable with the specified frequencies (probability mass function).
entropy.plugin(freqs, unit=c("log", "log2", "log10"))The Shannon entropy of a discrete random variable is defined as \(H = -\sum_k p(k) \log( p(k) )\), where \(p\) is its probability mass function.
entropy.plugin returns the Shannon entropy.