Getting Started
Reference Documentation
Advanced JAX Tutorials
Notes
custom_vjp
nondiff_argnums
Developer documentation
API documentation
jit
vmap
pmap
jax.random.
double_sided_maxwell
Sample from a double sided Maxwell distribution.
loc + scale* sgn(U-0.5)* one_sided_maxwell U~Unif;
key (Union[Any, PRNGKeyArray]) β a PRNG key.
Union
Any
PRNGKeyArray
loc (Any) β The location parameter of the distribution.
scale (Any) β The scale parameter of the distribution.
shape (Sequence[int]) β The shape added to the parameters loc and scale broadcastable shape.
Sequence
int
dtype (Any) β The type used for samples.
ndarray
A jnp.array of samples.