t

Contents

t#

class brainstate.random.t(df, size=None, key=None, dtype=None)#

Sample Student’s t random values.

Parameters:
  • df (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 non-negative integers specifying the result shape. Must be broadcast-compatible with df. The default (None) produces a result shape equal to df.shape.

  • key (int | Array | ndarray | None) – The key for the random number generator. If not given, the default random number generator is used.

Returns:

out – The sampled value.

Return type:

array_like