jax.random.double_sided_maxwell

jax.random.double_sided_maxwell#

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

Sample from a double sided Maxwell distribution.

The values are distributed according to the probability density function:

\[f(x;\mu,\sigma) \propto z^2 e^{-z^2 / 2}\]

where \(z = (x - \mu) / \sigma\), with the center \(\mu\) specified by loc and the scale \(\sigma\) specified by scale.

Parameters:
Return type:

Array

Returns:

A jnp.array of samples.