-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
mean(::UnitRange)
overflows
#50982
Comments
Good catch. Right now this is implemented as |
Seems to be already reported in JuliaStats/Statistics.jl#120 and there is even an unmerged PR for that JuliaStats/Statistics.jl#115. |
Or perhaps |
I like @chunjiw 's proposal because it works better on affine spaces like dates or Fahrenheits where you can't divide positions by numbers (you can only divide displacements). |
I'm wondering is the performance gain of "one less float point division" significant enough? When I started programming I was taught |
llvm should be able to get rid of the floating point division since it's by a constant power of 2 |
From the documentation one might expect a number between the two endpoints, but I got a number outside that range. I think this is a bug.
The text was updated successfully, but these errors were encountered: