Let
denote a vector of random variables each having a Poisson distribution with parameter
. Then
The mean and variance of each distribution are both equal to
.
g01skc computes, for given
and
the probabilities:
,
and
using the algorithm described in
Knüsel (1986).
The input arrays to this function are designed to allow maximum flexibility in the supply of vector arguments by re-using elements of any arrays that are shorter than the total number of evaluations required. See
Section 2.6 in the
G01 Chapter Introduction for further information.
-
1:
– Integer
Input
-
On entry: the length of the array
l.
Constraint:
.
-
2:
– const double
Input
-
On entry: , the parameter of the Poisson distribution with , , for .
Constraint:
, for .
-
3:
– Integer
Input
-
On entry: the length of the array
k.
Constraint:
.
-
4:
– const Integer
Input
-
On entry: , the integer which defines the required probabilities with , .
Constraint:
, for .
-
5:
– double
Output
-
Note: the dimension,
dim, of the array
plek
must be at least
.
On exit: , the lower tail probabilities.
-
6:
– double
Output
-
Note: the dimension,
dim, of the array
pgtk
must be at least
.
On exit: , the upper tail probabilities.
-
7:
– double
Output
-
Note: the dimension,
dim, of the array
peqk
must be at least
.
On exit: , the point probabilities.
-
8:
– Integer
Output
-
Note: the dimension,
dim, of the array
ivalid
must be at least
.
On exit:
indicates any errors with the input arguments, with
- No error.
- On entry, .
- On entry, .
- On entry, .
-
9:
– NagError *
Input/Output
-
The NAG error argument (see
Section 7 in the Introduction to the NAG Library CL Interface).