Skip to content
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

potentially erroneous entropy calculation #56

Closed
keudosan opened this issue Sep 22, 2019 · 1 comment
Closed

potentially erroneous entropy calculation #56

keudosan opened this issue Sep 22, 2019 · 1 comment

Comments

@keudosan
Copy link

startingEntropy = Math.Log(sumOfWeights) - sumOfWeightLogWeights / sumOfWeights;

as far as i can tell, this expression does not end up being equal to the definition of shannon entropy. could a proof of this formula's correctness be provided?

@keudosan
Copy link
Author

well i figured it out a few minutes later, so nevermind that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant