rNonCentralStudent

rNonCentralStudent(*args)

Realization of a scalar NonCentralStudent distribution.

Parameters:
nufloat, \nu > 0

The \nu parameter.

deltafloat, \delta > 0

The \delta parameter.

sizeint, optional

The number of realizations. Default value is 1.

Returns:
realizationsfloat or a sequence of float

The realizations of the distribution.

Notes

The position parameter \gamma is equal to zero.

The probability density function is defined as:

f_X(x) = \frac{exp \left(-\delta^2 / 2 \right)}
              {\sqrt{\nu\pi} \Gamma \left(\frac{\nu}{2} \right)}
         \left(\frac{\nu}{\nu + x^2}\right) ^ {\frac{\nu + 1}{2}}
         \sum_{j=0}^{\infty}
         \frac{\Gamma \left(\frac{\nu + j + 1}{2}\right)}{\Gamma(j + 1)}
         \left(\delta(x - \gamma)
         \sqrt{\frac{2}{\nu + x^2}}\right) ^ j,
         \quad x \in \Rset

With \Gamma denotes Euler’s Gamma function Gamma().

Examples

>>> import openturns as ot
>>> ot.RandomGenerator.SetSeed(0)
>>> r = ot.DistFunc.rNonCentralStudent(2.5, 0.5)
>>> r = ot.DistFunc.rNonCentralStudent(2.5, 0.5, 10)