rNonCentralChiSquare¶
- rNonCentralChiSquare(*args)¶
Realization of a NonCentralChiSquare distribution.
- Parameters:
- nufloat,
The parameter.
- lambdafloat,
The parameter.
- sizeint
The number of realizations (optional).
Default value is 1.
- Returns:
- realizationsfloat or sequence of float
The realizations of the distribution.
Notes
The probability density function is defined as:
where is the probability density function of a random variate.
Examples
>>> import openturns as ot >>> ot.RandomGenerator.SetSeed(0) >>> r = ot.DistFunc.rNonCentralChiSquare(2.5, 0.5) >>> r = ot.DistFunc.rNonCentralChiSquare(2.5, 0.5, 10)