probt

 

Description

Student's t cdf

Syntax

double probt( double dt, UINT nDof )

Parameters

dt
[input] Value of t
nDof
[input] Degrees of freedom where nDof>0.

Return

Returns the value for cumulative distribution function for T distribution

Examples

EX1

void probt_ex1()
{
    double dt=1.761;
    UINT nDof=14;
    double dP;
    dP=probt(dt,nDof); // results in dP==0.95
    dt=-1.761;
    dP=probt(dt,nDof); // results in dP==0.05
}

Remark

For historical reasons, this student's t cumulative distribution function was misnamed; Now, we developed a new set of distribution functions, whose CDFs end up with *cdf(), such as chi2cdf(), PDFs with *pdf(), and Inverse CDFs with *inv().

This function performs the same functionality as tcdf(), and we recommend the latter.

See Also

tcdf, tTable, invt

header to Include

origin.h

Reference