10 * long double m, y, pdtrl();
18 * Returns the sum of the first k terms of the Poisson
27 * The terms are not summed directly; instead the incomplete
28 * gamma integral is employed, according to the relation
30 * y = pdtr( k, m ) = igamc( k+1, m ).
32 * The arguments must both be positive.
43 * Complemented poisson distribution
50 * long double m, y, pdtrcl();
58 * Returns the sum of the terms k+1 to infinity of the Poisson
67 * The terms are not summed directly; instead the incomplete
68 * gamma integral is employed, according to the formula
70 * y = pdtrc( k, m ) = igam( k+1, m ).
72 * The arguments must both be positive.
83 * Inverse Poisson distribution
90 * long double m, y, pdtrl();
99 * Finds the Poisson variable x such that the integral
100 * from 0 to x of the Poisson density is equal to the
101 * given probability y.
103 * This is accomplished using the inverse gamma integral
104 * function and the relation
106 * m = igami( k+1, y ).
117 * message condition value returned
118 * pdtri domain y < 0 or y >= 1 0.0
124 Cephes Math Library Release 2.3: March, 1995
125 Copyright 1984, 1995 by Stephen L. Moshier
130 extern long double igaml ( long double, long double );
131 extern long double igamcl ( long double, long double );
132 extern long double igamil ( long double, long double );
134 long double igaml(), igamcl(), igamil();
137 long double pdtrcl( k, m )
143 if( (k < 0) || (m <= 0.0L) )
145 mtherr( "pdtrcl", DOMAIN );
149 return( igaml( v, m ) );
154 long double pdtrl( k, m )
160 if( (k < 0) || (m <= 0.0L) )
162 mtherr( "pdtrl", DOMAIN );
166 return( igamcl( v, m ) );
170 long double pdtril( k, y )
176 if( (k < 0) || (y < 0.0L) || (y >= 1.0L) )
178 mtherr( "pdtril", DOMAIN );