mtalg.random.MultithreadedRNG.gamma
- MultithreadedRNG.gamma(shape: Number, scale: Number = 1.0, size: int | tuple | None = None) ndarray | Number[source]
Draw from a gamma distribution.
- Parameters:
shape – The shape of the gamma distribution. Must be non-negative.
scale – The scale of the gamma distribution. Must be non-negative. Default is equal to 1.
size – Output shape.
- Returns:
numpy.ndarray or scalar.