Warning
This page was created from a pull request.
jax.random.double_sided_maxwellΒΆ
-
jax.random.
double_sided_maxwell
(key, loc, scale, shape=(), dtype=<class 'numpy.float64'>)[source]ΒΆ Sample from a double sided Maxwell distribution.
- Samples using:
loc + scale* sgn(U-0.5)* one_sided_maxwell U~Unif;
- Parameters
key β a PRNGKey key.
loc β The location parameter of the distribution.
scale β The scale parameter of the distribution.
shape β The shape added to the parameters loc and scale broadcastable shape.
dtype β The type used for samples.
- Returns
A jnp.array of samples.