Warren Weckesser
2017-03-16 19:19:08 UTC
I'm working on an update to the Frechet distribution in scipy.stats (see
https://github.com/scipy/scipy/issues/3258 and
https://github.com/scipy/scipy/pull/3275).
Instead jumping through the "lazy_where" hoops that are required for
conditional computations, it would be much easier to create a ufunc for the
standard PDF, CDF and possibly other required functions. Easier, that is,
if I use the ufunc generation tools that we have over in scipy.special.
Would there be any objections to this? We already have quite a few
functions for probability distributions in scipy.special:
https://docs.scipy.org/doc/scipy/reference/special.html#raw-statistical-functions
I wouldn't mind creating ufuncs for some of the other distributions, too.
A ufunc implementation is more efficient, simplifies the code in
scipy.stats, and automatically handles broadcasting.
I'm bringing this up here to see if anyone has any objections to the
expansion of the statistical functions in scipy.special.
Warren
https://github.com/scipy/scipy/issues/3258 and
https://github.com/scipy/scipy/pull/3275).
Instead jumping through the "lazy_where" hoops that are required for
conditional computations, it would be much easier to create a ufunc for the
standard PDF, CDF and possibly other required functions. Easier, that is,
if I use the ufunc generation tools that we have over in scipy.special.
Would there be any objections to this? We already have quite a few
functions for probability distributions in scipy.special:
https://docs.scipy.org/doc/scipy/reference/special.html#raw-statistical-functions
I wouldn't mind creating ufuncs for some of the other distributions, too.
A ufunc implementation is more efficient, simplifies the code in
scipy.stats, and automatically handles broadcasting.
I'm bringing this up here to see if anyone has any objections to the
expansion of the statistical functions in scipy.special.
Warren