loggamma

Contents

loggamma#

class brainstate.random.loggamma(a, size=None, key=None, dtype=None)#

Sample log-gamma random values.

Parameters:
  • a (float, array_like) – A float or array of floats broadcast-compatible with shape representing the parameter of the distribution.

  • size (int | Sequence[int] | integer | Sequence[integer] | None) – A tuple of nonnegative integers specifying the result shape. Must be broadcast-compatible with a. The default (None) produces a result shape equal to a.shape.

  • key (PRNGKey, optional) – The key for the random number generator. If not given, the default random number generator is used.

  • key – The key for the random number generator. If not given, the default random number generator is used.

Returns:

out – The sampled results.

Return type:

array_like