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

code in README does not return the reported value #5

Closed
ccattuto opened this issue Aug 30, 2019 · 1 comment
Closed

code in README does not return the reported value #5

ccattuto opened this issue Aug 30, 2019 · 1 comment

Comments

@ccattuto
Copy link
Contributor

import ndd
counts = [12, 4, 12, 4, 5, 3, 1, 5, 1, 2, 2, 2, 2, 11, 3, 4, 12, 12, 1, 2]
entropy_estimate = ndd.entropy(counts, k=100)
entropy_estimate
2.8246841846955477

README reports 2.840012048914245 instead.

@simomarsili
Copy link
Owner

fixed. thanks!

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

2 participants