-
Notifications
You must be signed in to change notification settings - Fork 40
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
f32 or i32 support #91
Comments
Thank you! Much of it is also due to @marshallpierce's excellent work. The way HDR Histograms work isn't compatible with negative numbers, at least not without modifications. This is also the case for the original Java version; see: Floating point values can be supported, but they are basically a completely separate implementation that wraps an inner integer-based histogram. I'd be neat to port |
For negative numbers, you could use two |
Thanks @jonhoo for pointing to JavaDoc. I didnt know negative numbers are not supported. I want my result to have 50 bins. Since, HDRHistogram has support for percentile iter, I though I will iterate by 2% (ticks_per_half_distance is 1%). This will perfectly work for me for positive numbers. Also, it works If my timeseries contain However, my timeseries contains random values. For example, unique values are [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9] or [-2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10]. Any idea how I can use your suggestion?. After, @jonhoo pointed out, I looked into their issues and found an extract,
I believe If they had provided a solution for |
Perhaps you could get to the "99%ile from lowest signed value" this way:
|
Thanks @marshallpierce; I will try this. Sorry for late response |
I think I will close this issue as well. Thanks both for the contribution and support :) |
I am interested in floating-point numbers. Has there been any development on that front since this issue was made? |
There has not, no. The main work would be porting the (essentially completely different) |
I opened a separate issue to track the floating-point number issue independent of the negative number discussion in this issue. |
First, thanks for your contribution. Your crate is really well documented and easy to use. However, I am not able to use it because of supporting only
u64
.It would be nice if there is a support for negative numbers (
i32
) and floating point number (f32
). Forf32
, I can just multiply with scaling factors to use asi32
but supporting negative number is a really needed feature for me.The text was updated successfully, but these errors were encountered: