dpnp.random.exponential

dpnp.random.exponential(scale=1.0, size=None)[source]

Draw samples from an exponential distribution.

For full documentation refer to numpy.random.exponential.

Limitations

Parameter scale is supported as a scalar. Otherwise, numpy.random.exponential(scale, size) samples are drawn. Output array data type is dpnp.float64.

Examples

Draw samples from the distribution:

>>> scale = .5  # alpha
>>> s = dpnp.random.exponential(scale, 1000)