dpnp.random.poisson

dpnp.random.poisson(lam=1.0, size=None)[source]

Draw samples from a Poisson distribution.

For full documentation refer to numpy.random.poisson.

Limitations

Parameter lam is supported as a scalar. Otherwise, numpy.random.poisson(lam, size) samples are drawn. Output array data type is dpnp.int32.

Examples

Draw samples from the distribution:

>>> import numpy as np
>>> s = dpnp.random.poisson(5, 10000)