<< distfun_tcdf T distfun_tpdf >>

Distfun >> Distfun > T > distfun_tinv

distfun_tinv

T Inverse CDF

Calling Sequence

x = distfun_tinv ( p , v )
x = distfun_tinv ( p , v , lowertail )

Parameters

p :

a matrix of doubles, the probability. Must be in the range [0,1].

v :

a matrix of doubles, the number of degrees of freedom, v>0.

lowertail :

a 1-by-1 matrix of booleans, the tail (default lowertail=%t). If lowertail is true (the default), then considers P(X<=x) otherwise P(X>x).

x :

a matrix of doubles, the outcome

Description

Computes the Inverse T cumulative probability distribution function.

Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.

Examples

x = distfun_tinv(0.999,5) // 5.8934295

// With extreme values of p
x = distfun_tinv(0,5) // x=-Inf
x = distfun_tinv(1,5) // x=+Inf

// With lower tail
x = distfun_tinv(1.e-20,5,%f) // 15683.925

Authors


Report an issue
<< distfun_tcdf T distfun_tpdf >>