Returns the Shannon information entropy of the categorical distribution of a
Entropy[data]
Entropy[k, data]
Entropy[{1, 2, 3, 4}]
→ Log[4]Entropy[2, {1, 1, 2, 2}]
→ 1Entropy[2, {a, b, c, d}]
→ 2Entropy[2, {a, a, b, b, c, c}]
→ -1 + Log[6]/Log[2]- SameTest — default Automatic