dpnp.random.Generator.poisson

method

Generator.poisson(lam=1.0, size=None, *, usm_type=None)[source]

Draw samples from a Poisson distribution.

For full documentation refer to numpy.random.Generator.poisson.

Parameters:
lam{float, array_like of floats, dpnp.ndarray, usm_ndarray}, optional

The expected number of events, non-negative.

Default: 1.0.

size{None, int, tuple of ints}, optional

Output shape. With None, the broadcast shape of lam.

Default: None.

usm_type{None, "device", "shared", "host"}, optional

The type of SYCL USM allocation for the output array.

Default: None, which means the USM type of the array parameters, or "device" when there are none.

Returns:
outdpnp.ndarray

The samples, of data type dpnp.int64.

Limitations

usm_type is not in NumPy's signature.