-
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
Warn people away from this package #20
Conversation
@@ -1,6 +1,6 @@ | |||
# StatsFuns | |||
|
|||
Mathematical functions related to statistics. | |||
**A purely internal library for mathematical functions related to statistics that provides back-end machinery for the Distributions.jl package. End users should always use Distributions.jl and should never use this package under any circumstances.** |
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.
I would probably change "and should never use this package under any circumstances" to simply "instead."
The "Basic Functions" are not accessible through Distributions but still potentially useful. OTOH, many of them are one liners. |
I believe @andreasnoack was saying that we should eventually just merge this into Distributions rather than having it as its own package. While I think that's a good longer-term goal, currently some packages use StatsFuns as a medium for interfacing with the Rmath functions. Hopefully Rmath itself will eventually be phased out. |
The "Basic Functions" ( |
We could put the useful things in StatsBase and the Distributions-specific stuff in Distributions. |
StatsBase sounds like a decent place to me. |
@simonster We could move such functions to |
What about all of the constants we define here, like |
I think there is a niche in the package ecosystem for implementing seemingly trivial one liners, some of which are nevertheless hard to get right, because of corner cases, numerical issues, or unfortunate combinations of the two. I learned this the hard way, isolating #22 took a good part of an afternoon. Also, while writing functions that do promotion and type stability right is not difficult in Julia, having a library which already took care of this safes effort. Instead of warning users away from this package, I would suggest that it is renamed |
I think we all agree that it is useful to have these functions somewhere in a package. It just shouldn't be |
So would a PR that just puts the contents of this library in |
...and deprecating it here. Yes, that would be very useful. |
How would I deprecate it? Deprecate every exported function? Or are there facilities for deprecating an entire module? |
Wait, don't we want people to use most of these functions from Distributions.jl instead? |
I thought we were going to divide the functions between StatsBase and Distributions as appropriate |
I think the view was that functions like The exported functions herethat we move, say |
Maybe |
Functions like |
Superseded by #85 |
We keep having people who believe this package is meant to be used by end-users and therefore are surprised it's not documented.