[SciPy-user] scipy.stats.gamma usage.

Stéfan van der Walt stefan at sun.ac.za
Mon Aug 4 17:19:18 EDT 2008


2008/8/4 Zachary Pincus <zachary.pincus at yale.edu>:
> Here's a thumbnail of the usage of the function though:
>
> scipy.stats.gamma.pdf([0, 1, 2, 3], 9, scale=0.5)
>
> will give you the probability density at x = 0, 1, 2, and 3 of a gamma
> function with the shape parameter (k in the wikipedia page, a in the
> scipy.stats.gamma docstring -- did you read the documentation for
> scipy.stats.gamma?) set to 9 and the scale parameter (theta in
> wikipedia, 'scale' in scipy) set to 0.5.

The documentation is pretty confusing, and could use some work.  Even
just documenting the whole of NumPy proved challenging, but hopefully
we'll get to SciPy too sometime later this year.

Regards
Stéfan



More information about the SciPy-User mailing list