This file will hold the prototypes for procedures which allocate, free, and evaluate random number Generators.
Definition in file psRandom.h.
#include <stdio.h>
#include <stdbool.h>
#include <float.h>
#include <math.h>
#include "psVector.h"
#include "psScalar.h"
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
Include dependency graph for psRandom.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
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. | |
1.4.2