Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psRandom.h File Reference


Detailed Description

Random Number Generators.

This file will hold the prototypes for procedures which allocate, free, and evaluate random number Generators.

Author:
GLG, MHPCC
Version:
Revision
1.7
Name
rel7
Date:
Date
2005/08/23 23:23:05
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

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 ()
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 Wed Sep 14 10:43:25 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.2