-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
stats function triage #2200
Comments
I find the "keep" list reasonable except that I think the number of quantile functions should be limited to In addition to removing some functions, I think we should try to get consistent behaviour of julia> X=randn(4,2);
julia> mean(X)
0.4105754895893154
julia> mean(X, 1)
1x2 Float64 Array:
0.563512 0.257639
julia> mean(X, 2)
4x1 Float64 Array:
-0.159016
0.99812
0.916519
-0.113322
julia> var(X)
0.4116875679884982
julia> var(X, 1)
0.8087404291003555
julia> var(X, 2)
3.298853595753349
julia> median(X)
ERROR: no method median!(Array{Float64,2},)
in median at statistics.jl:25
julia> median(X, 1)
ERROR: no method median(Array{Float64,2},Int64) I think I prefer apply functions in the spirit of R to run the functions along axes but I am not sure. |
That was actually how I had the list, but Jeff thought it was weird to have quantile in base and then have the one-line definitions of percentile, quintile, quartile, etc. in stats. |
We do definitely need regularize these behaviors too. |
Definitely get rid of |
Mostly looks good to me. Does I do think that the various quantile functions should remain in base, fwiw. On Wed, Feb 6, 2013 at 11:44 AM, Viral B. Shah [email protected]:
|
You're probably right that |
|
Uhh, disregard the last post. I just figured out I can do this assignment myself. Cool. |
My thoughts:
I personally agree with Andreas that we should only have We are also badly missing several really important functions:
I believe we have the appropriate definition of |
|
I agree: |
I did an |
Went through
base/statistics.jl
yesterday, trying to figure out what should stay in base and what should go into a hypothetical newStats.jl
package for basic statistics functionality that doesn't go into base. The reason for this is twofold: some stats stuff probably just doesn't belong in the base; putting it in a package allows us to continue to evolve the stats API with more flexibility while still stabilizing the core language. Here's what I came up with:Wanted to get this out there for people more knowledgable about basic status usage than me to comment on.
cc: @dmbates, @johnmyleswhite, @HarlanH.
The text was updated successfully, but these errors were encountered: