brainpy.math.random.maxwell#

brainpy.math.random.maxwell(size=None, key=None)[source]#

Sample from a one sided Maxwell distribution.

The scipy counterpart is scipy.stats.maxwell.

Parameters:
  • key – a PRNG key.

  • size – The shape of the returned samples.

  • dtype – The type used for samples.

Returns:

A jnp.array of samples, of shape shape.