[Numpy-discussion] 8 Real Distributions

Robert Kern robert.kern at gmail.com
Mon Jan 20 10:53:06 EST 2020


On Tue, Jan 21, 2020 at 12:37 AM Michael Lance <michael.lance at gmail.com>
wrote:

> Hi Ralf,
>
> These are functions that generate data sets when invoked, like Numpy
> already does with mathematical distributions.
>

It's something of a judgement call. These distribution functions are
defined by tables. The most efficient way to implement them in Python would
be to just make them static arrays in a module that one uses
`Generator.choice()` on instead of a function that generates the arrays,
just to pick out one value and throw away the array again.

Regardless of what you want to call them or how you want to implement them,
a third-party module is the right place for them.

-- 
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20200121/d8eddd2c/attachment.html>


More information about the NumPy-Discussion mailing list