[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


ran3_poisson Source code in ran3_poisson.pro

ran3_poisson

Name
        ran3_poisson
Purpose
        returns one or more poisson-distributed random numbers with
        given mean, using the ran3 random number generator.
Category
        timing tools adopted from Random number generator and
        simulatiomn by Istvan Deak, Akademiai Kiado, Budapest 1990,
        here the simple count down poisson generator.
Calling Sequence
        ran3_poisson(seed,mean)
Input Parameters
        seed : a long integer used to initialize the random number
               generator (ran3). Set seed to
               any negative value to start the sequence.
        mean : the mean value(s) to use for creating a random value.
               If mean is a vector the returned value is a vector
               with the same dimension, each entry created with the
               corresponding mean value.
               !!! THE MEAN VALUE SHOULD NOT EXCEED 500 TO AVOID
               !!! NUMERICAL PROBLEMS
Optional Input Parameters

Keyword Parameters
        none
Output Parameters
        ran3_poisson : one or more random deviates from a poisson
                      distribution  (dimension of the output =
                      dimension of mean)
Optional Output
        none
Common Blocks
        none (hopefully)
Side Effects
        none
Restrictions
        set IDUM to any negative value to initialize or
        reinitialize the sequence
Example
        y=ran3_poisson(-23887878,[2.5,7.])
Revision History
        $Log: ran3_poisson.pro,v $
        Revision 1.2  2004/01/09 10:36:53  goehler
        warning for larger numbers
        Revision 1.1  2003/10/11 19:45:24  goehler
        simple poisson statistic random generator

Last modified by pro2html on 2005 January 04 at 16:41 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically