psRandom.h File Reference

#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.

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 ()
psRandompsRandomAlloc (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.


Generated on Fri Feb 2 22:25:33 2007 for pslib by  doxygen 1.5.1