Files | |
| file | psRandom.h |
| Random Number Generators. | |
| file | psRandom.h |
| Random Number Generators. | |
Data Structures | |
| struct | psRandom |
| Data structure for psRandom. More... | |
Enumerations | |
| enum | psRandomType { PS_RANDOM_TAUS } |
| Enumeration containing a flag for psRandom types. More... | |
Functions | |
| psU64 | p_psRandomGetSystemSeed () |
| psRandom * | psRandomAlloc (psRandomType type, unsigned long seed) |
| Allocates a psRandom struct. | |
| void | psRandomReset (psRandom *rand, unsigned long seed) |
| Resets an existing psRandom struct. | |
| double | psRandomUniform (const psRandom *r) |
| Random number generator based on a uniform distribution on [0,1). | |
| double | psRandomGaussian (const psRandom *r) |
| Random number generator based on a Gaussian deviate, N(0,1). | |
| double | p_psRandomGaussian (const psRandom *r, double sigma) |
| Random number generator based on a Gaussian deviate, N(0,1). | |
| double | psRandomPoisson (const psRandom *r, double mean) |
| Random number generator based on a Poisson distribution with the given mean. | |
|
|
Enumeration containing a flag for psRandom types.
Definition at line 36 of file psRandom.h. |
|
||||||||||||
|
Random number generator based on a Gaussian deviate, N(0,1). Uses gsl_ran_gaussian. XXX: I created this since the above psLib spec for p_psRandomGaussian had no argument for sigma. Verify that with IfA.
|
|
|
|
|
||||||||||||
|
Allocates a psRandom struct.
|
|
|
Random number generator based on a Gaussian deviate, N(0,1). Uses gsl_ran_gaussian.
|
|
||||||||||||
|
Random number generator based on a Poisson distribution with the given mean. Uses gsl_ran_poisson.
|
|
||||||||||||
|
Resets an existing psRandom struct.
|
|
|
Random number generator based on a uniform distribution on [0,1). Uses gsl_rng_uniform.
|
1.4.2