2.1.24.5.3.10 tinv


Description

Inverse cumulative distribution function for T distribution

Syntax

double tinv( const double dP, double df, int iTail = TAILED_TEST_DISC_LOWER, int * nFail = NULL )

Parameters

dP
[input] the probability from the required beta distribution.
df
[input] degrees of freedom, must be positive (df1>0 ).
iTail
[input]
1( TAILED_TEST_UPPER )for upper tail,
2( TAILED_TEST_LOWER) for lower tail.
3( TAILED_TEST_TWO_SIGN_IF), the two tail (significance level) probability is returned,.
4( TAILED_TEST_TWO_CONFID), the two tail (confidence interval) probability is returned,
nFail
[output] fail code

Return

Returns the value for inverse cumulative distribution function for T distribution

Examples

EX1

void tinv_ex1()
{
	double dP[]= {0.25, 0.5, 0.75};
	double df = 3;
	for(int ii = 0; ii<3; ii++)
		printf("%f	%f:	%f\n", dP[ii], df, tinv(dP[ii],df));
}

Remark

See Also

finv

Header to Include

origin.h

Reference