pStudent

pStudent(*args)

Cumulative distribution function of a scalar Student distribution.

Parameters:
nufloat, \nu > 0

The \nu parameter.

xfloat or sequence of float

Location.

tailbool, optional

Tail flag. Default value is False. If True, the complementary CDF is computed.

Returns:
pfloat or sequence of float

The CDF or the complementary CDF at x or at each x[i].

Notes

The probability density function is defined as:

p(x) = \dfrac{1}{\sqrt{\nu}B(1/2, \nu/2)} \left(1+ \dfrac{x^2}{\nu}\right)^{-\dfrac{\nu+1}{2}} \quad x \in \Rset

with \nu > 0.

Examples

>>> import openturns as ot
>>> cdf = ot.DistFunc.pStudent(2.5, 0.9)
>>> cdf = ot.DistFunc.pStudent(2.5, 0.9, True)