212 u032 exp_minus_lambda);
uint32_t poisson_dist_variate_exp_minus_lambda(uniform_rng uni_rng, uint32_t *seed_arg, u032 exp_minus_lambda)
Use this version for Poisson with pre-calculated exp(-λ) for speed gain.
Definition random.c:345
void init_WELL1024a_simp(void)
The initialiser function that MUST BE CALLED ONCE before WELLRNG1024a_simp() is used....
Definition random.c:75
uint32_t WELL1024a_seed(WELL1024a_seed_t seed)
The WELL 1024a RNG with custom seed.
Definition random.c:106
uint32_t mars_kiss64_simp(void)
Implementation of Marsaglia JKISS RNG uses 64-bit value and 2x multiplies.
Definition random.c:175
void validate_WELL1024a_seed(WELL1024a_seed_t seed)
MUST USE THIS before passing the seed to WELL1024a_seed() the first time.
Definition random.c:100
uint32_t mars_kiss64_seed(mars_kiss64_seed_t seed)
The Marsaglia KISS 64 RNG with custom seed.
Definition random.c:198
uint32_t(* uniform_rng)(uint32_t *)
The interface type to the uniform RNGs.
Definition random.h:170
uint32_t WELL1024a_seed_t[33]
Seed type for the L'Ecuyer WELL 1024a RNG.
Definition random.h:131
uint32_t mars_kiss64_seed_t[4]
Seed type for the Marsaglia KISS 64 RNG.
Definition random.h:90
uint32_t mars_kiss32(void)
Marsaglia 32-bit KISS generator using no multiplication instructions.
Definition random.c:150
uint32_t poisson_dist_variate(uniform_rng uni_rng, uint32_t *seed_arg, s1615 lambda)
A poisson distributed random variable, given .
Definition random.c:334
s1615 gaussian_dist_variate(uniform_rng uni_rng, uint32_t *seed_arg)
Returns standard Gaussian deviate.
Definition random.c:328
uint32_t WELL1024a_simp(void)
The WELL generator itself.
Definition random.c:86
void validate_mars_kiss64_seed(mars_kiss64_seed_t seed)
Validate seed for Marsaglia KISS 64.
Definition random.c:220
s1615 exponential_dist_variate(uniform_rng uni_rng, uint32_t *seed_arg)
Von Neuman's exponential distribution generator.
Definition random.c:234
Additions to the stdfix.h file to support full Draft ISO/IEC standards compliance.
accum s1615
An alternative name for the signed accum type.
Definition stdfix-full-iso.h:184
unsigned long fract u032
An alternative name for the unsigned long fract type.
Definition stdfix-full-iso.h:196