cupy.random.dirichlet#
- cupy.random.dirichlet(alpha, size=None, dtype=<class 'float'>)[source]#
Dirichlet distribution.
Returns an array of samples drawn from the dirichlet distribution. Its probability density function is defined as
\[f(x) = \frac{\Gamma(\sum_{i=1}^K\alpha_i)} {\prod_{i=1}^{K}\Gamma(\alpha_i)} \prod_{i=1}^Kx_i^{\alpha_i-1}.\]- Parameters
- Returns
Samples drawn from the dirichlet distribution.
- Return type
See also