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

hdr_value_at_percentile says 95th percentile of empty histogram is 63 #116

Open
lukeocamden opened this issue Apr 14, 2023 · 1 comment
Open

Comments

@lukeocamden
Copy link

Steps to repro:

hdr_histogram* histogram;
hdr_init(100, 10 * 1000 * 1000, 3, &histogram);
std::cout << hdr_value_at_percentile(histogram, 95) << std::endl;

Is there a more intuitive value that could be returned here eg zero?

@mikeb01
Copy link
Contributor

mikeb01 commented Feb 7, 2024

I have noticed some weird behaviour with empty histograms. I'll need to check with the behaviour of the Java implementation.

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