dpnp.random.laplace
- dpnp.random.laplace(loc=0.0, scale=1.0, size=None)[source]
Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay).
For full documentation refer to
numpy.random.laplace
.Limitations
Parameters loc and scale are supported as scalar. Otherwise,
numpy.random.laplace(loc, scale, size)
samples are drawn. Output array data type isdpnp.float64
.Examples
>>> loc, scale = 0., 1. >>> s = dpnp.random.laplace(loc, scale, 1000)