diff options
author | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2021-02-24 08:39:08 +0000 |
---|---|---|
committer | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2021-02-24 08:39:08 +0000 |
commit | cbf5c130ca29e9605a594fe7fb8ac0f18fd7f575 (patch) | |
tree | 7590728fd7b3f4df945b3ad3b0715ec46a116385 /numpy | |
parent | 9437402f1d60778cd723e6119044ef0510ef17c0 (diff) | |
download | numpy-cbf5c130ca29e9605a594fe7fb8ac0f18fd7f575.tar.gz |
DOC: Correct poisson docstring
closes #18314
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/random/_generator.pyx | 5 | ||||
-rw-r--r-- | numpy/random/mtrand.pyx | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx index 1912f8bed..a84dba4e4 100644 --- a/numpy/random/_generator.pyx +++ b/numpy/random/_generator.pyx @@ -3025,8 +3025,9 @@ cdef class Generator: Parameters ---------- lam : float or array_like of floats - Expectation of interval, must be >= 0. A sequence of expectation - intervals must be broadcastable over the requested size. + Expected number of events occurring in a fixed-time interval, + must be >= 0. A sequence must be broadcastable over the requested + size. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., ``(m, n, k)``, then ``m * n * k`` samples are drawn. If size is ``None`` (default), diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx index 1fd68111e..f8f0ab868 100644 --- a/numpy/random/mtrand.pyx +++ b/numpy/random/mtrand.pyx @@ -3524,8 +3524,9 @@ cdef class RandomState: Parameters ---------- lam : float or array_like of floats - Expectation of interval, must be >= 0. A sequence of expectation - intervals must be broadcastable over the requested size. + Expected number of events occurring in a fixed-time interval, + must be >= 0. A sequence must be broadcastable over the requested + size. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., ``(m, n, k)``, then ``m * n * k`` samples are drawn. If size is ``None`` (default), |