Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NextSeed int64 // is initialized to config.Cfg.Computation.Random_number_seed to avoid circular imports
Functions ¶
func Poisson ¶
Algorithm taken from Wikipedia (https://en.wikipedia.org/wiki/Poisson_distribution#Generating_Poisson-distributed_random_variables). This differs from a naive implementation in avoiding rounding errors for lambda > 700
func RandFactory ¶
RandFactory returns a newly created random number generator with a new seed. Note: this is *not* thread safe, we assume you call this before starting the threads to give each its own RNG
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.