jax.random.laplace#

jax.random.laplace(key, shape=(), dtype=<class 'float'>)[source]#

Sample Laplace random values with given shape and float dtype.

The values are distributed according to the probability density function:

\[f(x) = \frac{1}{2}e^{-|x|}\]
Parameters:
Return type:

Array

Returns:

A random array with the specified shape and dtype.