summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorstevenjkern <kern.steven0@gmail.com>2016-05-05 11:45:57 -0500
committerstevenjkern <kern.steven0@gmail.com>2016-05-05 11:45:57 -0500
commita4217457fe7638549b303b87ba7a73bd41ec0d51 (patch)
tree11983b74b770bac8477a11d445ffa3462510a480 /numpy/random
parent3c394f7f8d09f08aaa068e617f79d542c17fd771 (diff)
downloadnumpy-a4217457fe7638549b303b87ba7a73bd41ec0d51.tar.gz
DOC: fix incorrect Gamma distribution parameterization comments
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/mtrand/mtrand.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx
index 72dff7cfc..f01aa6931 100644
--- a/numpy/random/mtrand/mtrand.pyx
+++ b/numpy/random/mtrand/mtrand.pyx
@@ -2016,7 +2016,7 @@ cdef class RandomState:
----------
.. [1] Peyton Z. Peebles Jr., "Probability, Random Variables and
Random Signal Principles", 4th ed, 2001, p. 57.
- .. [2] Wikipedia, "Poisson process",
+ .. [2] Wikipedia, "Poisson process",
http://en.wikipedia.org/wiki/Poisson_process
.. [3] Wikipedia, "Exponential distribution",
http://en.wikipedia.org/wiki/Exponential_distribution
@@ -2216,7 +2216,7 @@ cdef class RandomState:
--------
Draw samples from the distribution:
- >>> shape, scale = 2., 2. # mean and dispersion
+ >>> shape, scale = 2., 2. # mean=4, std=2*sqrt(2)
>>> s = np.random.gamma(shape, scale, 1000)
Display the histogram of the samples, along with