From cbf5c130ca29e9605a594fe7fb8ac0f18fd7f575 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 24 Feb 2021 08:39:08 +0000 Subject: DOC: Correct poisson docstring closes #18314 --- numpy/random/_generator.pyx | 5 +++-- numpy/random/mtrand.pyx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'numpy') 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), -- cgit v1.2.1