-
Notifications
You must be signed in to change notification settings - Fork 525
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
stat.Quantile
returns wrong value when dataset is even size
#1836
Comments
The current behaviour is consistent with the documentation. I think you will get the behaviour you want if you call |
Thanks for your reply. https://go.dev/play/p/lM8ZNR0rTsi
|
I see. I agree the documentation may be understood as promising a different behaviour, but I am not sure if the problem is with the code, or the documentation. @sbinet, what is your opinion? |
I really need to not do things before my first coffee. Using the correct value in the R, this is not a bug.
@Iriko0606 You are looking for the R-7 behaviour. I thought we had implemented that. This should be added. |
Thanks for your investigation and reply. Is the method should be implemented as Quantile method of another case |
Yes, there should be another |
What are you trying to do?
I'm trying to get median value when I request even size of dataset to
stat.Quantile
What did you do?
https://go.dev/play/p/8b6vDMunna8
What did you expect to happen?
I expect return value
4
What actually happened?
its returns
3
What version of Go and Gonum are you using?
1.19
Does this issue reproduce with the current master?
Yes
The text was updated successfully, but these errors were encountered: