jax.random.maxwellΒΆ

jax.random.maxwell(key, shape=(), dtype=<class 'numpy.float64'>)[source]ΒΆ

Sample from a one sided Maxwell distribution.

The scipy counterpart is scipy.stats.maxwell.

Parameters
  • key (ndarray) – a PRNGKey key.

  • shape (Sequence[int]) – The shape of the returned samples.

  • dtype (Any) – The type used for samples.

Return type

ndarray

Returns

A jnp.array of samples, of shape shape.