![]() |
Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
![]() |
ran2_poisson
returns one or more poisson-distributed random numbers with
given mean, using the ran2 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.
ran2_poisson(seed,mean)
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
none
ran2_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=ran2_poisson(-23887878,[2.5,7.])
$Log: ran2_poisson.pro,v $
Revision 1.1 2004/09/06 21:12:54 wilms
initial release, based on ran3_normal
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]