[SciPy-User] scipy.stats.invnorm - rename to invgauss?
Wed Apr 7 14:05:43 CDT 2010
On Wed, Apr 7, 2010 at 2:45 PM, Matthew Brett <email@example.com> wrote:
> I was caught in the same trap as another innocent, in thinking that
> scipy.stats.invnorm was the inverse of the normal distribution:
> In my desire to improve the docstring, I started looking; after a
> while I found this:
> - and that seems to fit the invnorm code.
> A Google search for 'inverse normal distribution' does not include the
> page above in the first 20 hits, but does find the inverse of the
> normal distribution, and this:
> I wonder whether it would be good to rename scipy.stats.invnorm to
> scipy.stats.invgauss ? Maybe with a deprecation warning to invnorm?
in general I wouldn't mind, but for naming consistency I prefer the current name
distributions created by some transformation of the normal distribution:
>>> [i for i in dir(stats) if 'norm' in i and isinstance(getattr(stats,i), stats.distributions.rv_generic)]
['foldnorm', 'halfnorm', 'invnorm', 'lognorm', 'norm', 'powerlognorm',
I don't think the confusion persists very long, invnorm is a
distribution, the inverse function of the cdf of the normal
distribution is a function or in our case a method (ppf).
> SciPy-User mailing list
More information about the SciPy-User