New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entropy #55
Entropy #55
Conversation
Also changed "finite entropy" to "well-defined entropy" in the description of the contract for the Entropy typeclass. GeometricDistribution defines Mean and Variance even though it treats a success probability of 0 as legal, so we should be consistent by defining Entropy (and not just MaybeEntropy) as well.
Thank you! I have couple of remarks though
|
|
Actually, let me walk back that "always coincide" claim. I've always thought of differential entropy as a generalization of Shannon entropy, but that's not really true, or at least would require something beyond standard real analysis to justify. Instead, I should substitute the weaker claim that there is no situation in which differential entropy and Shannon entropy are both defined and unequal. |
Merged. Thank you! |
This patch set specifies the typeclasses 'Entropy' and 'MaybeEntropy', and defines instances for every distribution.