# cupy.random.noncentral_chisquare¶

cupy.random.noncentral_chisquare(df, nonc, size=None, dtype=<class 'float'>)[source]

Noncentral chisquare distribution.

Returns an array of samples drawn from the noncentral chisquare distribution. Its probability density function is defined as

$f(x) = \frac{1}{2}e^{-(x+\lambda)/2} \ \left(\frac{x}{\lambda}\right)^{k/4 - 1/2} \ I_{k/2 - 1}(\sqrt{\lambda x}),$

where $$I$$ is the modified Bessel function of the first kind.

Parameters: df (float) – Parameter of the noncentral chisquare distribution $$k$$. nonc (float) – Parameter of the noncentral chisquare distribution $$\lambda$$. 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 and numpy.float64 types are allowed. Samples drawn from the noncentral chisquare distribution. cupy.ndarray