dpnp.random.gamma
- dpnp.random.gamma(shape, scale=1.0, size=None)[source]
Gamma distribution.
Draw samples from a Gamma distribution.
For full documentation refer to
numpy.random.gamma.Limitations
Parameters
shapeandscaleare supported as scalar. Otherwise,numpy.random.gamma(shape, scale, size)samples are drawn. Output array data type isdpnp.float64.Examples
Draw samples from the distribution: >>> shape, scale = 0, 0.1 # shape and scale >>> s = dpnp.random.gamma(shape, scale, 1000)