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

Fix histogram overcounting #61

Merged
merged 2 commits into from
Mar 17, 2025
Merged

Fix histogram overcounting #61

merged 2 commits into from
Mar 17, 2025

Conversation

stefaniasava
Copy link
Collaborator

The histogram was displaying more responses than actually exist because of overlapping bin definitions.
I updated the binning logic in getHistogramData() to make upper bounds exclusive ([min, max)) for all bins except the last, which remains inclusive. This makes sure each response is counted in only one bin and fixes our issue.

@stefaniasava stefaniasava requested a review from b3n4kh March 17, 2025 09:45
@b3n4kh b3n4kh merged commit 45cbcd2 into main Mar 17, 2025
2 checks passed
@b3n4kh b3n4kh deleted the fix/histogram-overcounting branch March 17, 2025 12:26
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

Successfully merging this pull request may close these issues.

2 participants