cupy.random.standard_gamma¶
-
cupy.random.
standard_gamma
(shape, size=None, dtype=<class 'float'>)[source]¶ Standard gamma distribution.
Returns an array of samples drawn from the standard gamma distribution. Its probability density function is defined as
\[f(x) = \frac{1}{\Gamma(k)}x^{k-1}e^{-x},\]Parameters: - shape (array) – Parameter of the gamma distribution \(k\).
- size (int or tuple of ints) – The shape of the array. If
None
, a zero-dimensional array is generated. - dtype – Data type specifier. Only
numpy.float32
andnumpy.float64
types are allowed.
Returns: Samples drawn from the standard gamma distribution.
Return type: See also