diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-06-02 20:43:07 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-06-02 20:43:07 +0000 |
commit | 0d50ca603a40b8a015e686f5f49619b01088b09d (patch) | |
tree | 9862961b163c89ab8ec098b542a1150795ea3740 /numpy/random/mtrand | |
parent | 42f4f816a23d430c6d3f471416ef7f7308159d7a (diff) | |
download | numpy-0d50ca603a40b8a015e686f5f49619b01088b09d.tar.gz |
Fix errors in examples in docstrings
Diffstat (limited to 'numpy/random/mtrand')
-rw-r--r-- | numpy/random/mtrand/mtrand.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx index 2bc2652fe..d69c99703 100644 --- a/numpy/random/mtrand/mtrand.pyx +++ b/numpy/random/mtrand/mtrand.pyx @@ -1279,7 +1279,7 @@ cdef class RandomState: >>> import matplotlib.pyplot as plt >>> import scipy.special as sps >>> count, bins, ignored = plt.hist(s, 50, normed=True) - >>> y = bins**(shape-1)*(exp(-bins/scale) / + >>> y = bins**(shape-1)*(np.exp(-bins/scale) / ... (sps.gamma(shape)*scale**shape)) >>> plt.plot(bins, y, linewidth=2, color='r') >>> plt.show() |