dNonCentralChiSquare¶
- dNonCentralChiSquare(*args)¶
Probability density function of a NonCentralChiSquare distribution.
- Parameters:
- nufloat,
The parameter.
- lambdafloat,
The parameter.
- xfloat
The location.
- precisionfloat, optional
The precision of the algorithm.
Default value is fixed in the
ResourceMap
, key (scalar) DistFunc-Precision.- maximum_iterationint, optional
The max number of iterations of the algorithm.
Default value is fixed in the
ResourceMap
, key (integer) DistFunc-MaximumIteration.
- Returns:
- dfloat
The PDF at .
Notes
The probability density function is defined as:
where is the probability density function of a random variate.
We use the algorithms described in [benton2003] and Johnson and al algorithm described in [johnson1995].
Examples
>>> import openturns as ot >>> ot.RandomGenerator.SetSeed(0) >>> r = ot.DistFunc.dNonCentralChiSquare(2.5, 0.5, 1.0) >>> r = ot.DistFunc.dNonCentralChiSquare(2.5, 0.5, 10, True)