g05ecf

g05ecf © Numerical Algorithms Group, 2002.

Purpose

G05ECF Set up reference vector for generating pseudo-random integers, Poisson distribution

Synopsis

[r,ifail] = g05ecf(t<,nr,ifail>)

Description

 
 This sets up a reference vector for use in G05EYF. Together these
 routines produce random numbers from the distribution defined by:
 
              i -t     
             t e       
     P(I=i)= -----     if i=0,1,...
              i!       
 
     P(I=i)=0          otherwise.
 

Parameters

g05ecf

Required Input Arguments:

t                                     real

Optional Input Arguments:                       <Default>

nr                                    integer  ceil(20*(1+sqrt(abs(t))))
ifail                                 integer  -1

Output Arguments:

r (nr)                                real
ifail                                 integer