How can I get a get a list of the available numpy.random distributions as described in the docs?
I'm writing a command-line utility which creates noise. I'd like to grab each available distribution, and get their required parameters to generate command-line options.
I could almost do something like this:
import numpy as np
distributions = filter( lambda elt: not elt.startswith("__"), dir(np.random) )
... but this list contains extra stuff (e.g. shuffle, get_state) which aren't distributions.
--normaloption would take two arguments. That puts the user in change of deciding what's meaningful.