Return the Shannon entropy of a discrete distribution, in bits.
Treat as contributing nothing, since is taken as 0 by the limit rather than being undefined. Entropy is maximal for a uniform distribution and zero when one outcome is certain.
Input
[0.5, 0.5]
Output
1.0