-
-
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
deprecate histogram functionality #16450
Conversation
I think the |
1f7d843
to
aaae574
Compare
@@ -334,17 +334,23 @@ for rng in ([], [MersenneTwister()], [RandomDevice()]) | |||
end | |||
end | |||
|
|||
function hist(X,n) | |||
v = zero(Int,n) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zeros
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right.
@simonbyrne this wasn't added to NEWS, was it? edit: check if https://github.com/JuliaLang/julia/pull/17779/files#diff-8312ad0561ef661716b48d09478362f3R272 looks okay |
No, I don't think so; the change looks good. |
|
||
## midpoints of intervals | ||
midpoints(r::Range) = r[1:length(r)-1] + 0.5*step(r) | ||
midpoints(v::AbstractVector) = [0.5*(v[i] + v[i+1]) for i in 1:length(v)-1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these were missing depwarns - they're still exported and tested...
and actually deprecate it - this was moved to deprecated.jl in #16450, but not actually deprecated
and actually deprecate it - this was moved to deprecated.jl in #16450, but not actually deprecated
Updated PR from #6842