cupy.random.poisson¶
-
cupy.random.
poisson
(lam=1.0, size=None, dtype=<class 'int'>)[source]¶ Poisson distribution.
Returns an array of samples drawn from the poisson distribution. Its probability mass function is defined as
\[f(x) = \frac{\lambda^xe^{-\lambda}}{k!}.\]Parameters: - lam (array_like of floats) – Parameter of the poisson distribution \(\lambda\).
- size (int or tuple of ints) – The shape of the array. If
None
, this function generate an array whose shape is lam.shape. - dtype – Data type specifier. Only
numpy.int32
andnumpy.int64
types are allowed.
Returns: Samples drawn from the poisson distribution.
Return type: See also
numpy.random.poisson