[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

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


ran2_poisson Source code in ran2_poisson.pro

ran2_poisson

Name
        ran2_poisson
Purpose
        returns one or more poisson-distributed random numbers with
        given mean, using the ran2 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
        ran2_poisson(seed,mean)
Input Parameters
        seed : a long integer used to initialize the random number
               generator (ran2). 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
        ran2_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=ran2_poisson(-23887878,[2.5,7.])
Revision History
        $Log: ran2_poisson.pro,v $
        Revision 1.1  2004/09/06 21:12:54  wilms
        initial release, based on ran3_normal

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