Last chance! 50% off unlimited learning
Sale ends in
This funciton computes Shannon's Joint-Entropy
JE(x, unit = "log2")
a numeric joint-probability vector
a character string specifying the logarithm unit that shall be used to compute distances that depend on log computations.
a numeric value representing Shannon's Joint-Entropy in bit.
Shannon, Claude E. 1948. "A Mathematical Theory of Communication". Bell System Technical Journal 27 (3): 379-423.
# NOT RUN {
JE(1:100/sum(1:100))
# }
Run the code above in your browser using DataLab