![]() |
Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
![]() |
ran3_poisson
returns one or more poisson-distributed random numbers with
given mean, using the ran3 random number generator.
timing tools adopted from Random number generator and
simulatiomn by Istvan Deak, Akademiai Kiado, Budapest 1990,
here the simple count down poisson generator.
ran3_poisson(seed,mean)
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
none
ran3_poisson : one or more random deviates from a poisson
distribution (dimension of the output =
dimension of mean)
none
none (hopefully)
none
set IDUM to any negative value to initialize or
reinitialize the sequence
y=ran3_poisson(-23887878,[2.5,7.])
$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
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]