Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

random-coll.h File Reference

Go to the source code of this file.

Functions

double p_dBeta (double a, double b, unsigned int *seed)
int p_iBinomial (double p, int n, unsigned int *seed)
double p_dExponential (double lambda, unsigned int *seed)
double p_dGammaInt (int a, unsigned int *seed)
double p_dGammaGen (double A, unsigned *seed)
int p_iGeometric (double p, unsigned int *seed)
double p_dNormal (double mean, double sigma, unsigned int *seed)
int p_iPoisson (double mu, unsigned *seed)
unsigned p_iUniform (unsigned *seed)
double p_dUniform (unsigned *seed)


Function Documentation

double p_dBeta double  a,
double  b,
unsigned int *  seed
 

Definition at line 91 of file random-coll.c.

References BETA_TURNING_POINT, p_dGammaGen(), p_dUniform(), and pow().

int p_iBinomial double  p,
int  n,
unsigned int *  seed
 

Definition at line 148 of file random-coll.c.

References p_dUniform().

double p_dExponential double  lambda,
unsigned int *  seed
 

Definition at line 189 of file random-coll.c.

References log(), and p_dUniform().

Referenced by TGo4MbsRandom::rand_event().

double p_dGammaInt int  a,
unsigned int *  seed
 

Definition at line 240 of file random-coll.c.

References exp(), GAMMA_TURNING_POINT, log(), p_dUniform(), sqrt(), and tan().

Referenced by p_dGammaGen().

double p_dGammaGen double  A,
unsigned *  seed
 

Definition at line 282 of file random-coll.c.

References exp(), floor(), log(), p_dGammaInt(), p_dUniform(), pow(), sqrt(), and tan().

int p_iGeometric double  p,
unsigned int *  seed
 

Definition at line 368 of file random-coll.c.

References ceil(), GEOMETRIC_TURNING_POINT, log(), and p_dUniform().

double p_dNormal double  mean,
double  sigma,
unsigned int *  seed
 

Definition at line 404 of file random-coll.c.

References log(), p_dUniform(), and sqrt().

Referenced by TGo4MbsRandom::rand_event().

int p_iPoisson double  mu,
unsigned *  seed
 

Definition at line 439 of file random-coll.c.

References exp(), and p_dUniform().

unsigned p_iUniform unsigned *  seed  ) 
 

Definition at line 497 of file random-coll.c.

References _Cons, _Hi, _Lo, and _Mult.

double p_dUniform unsigned *  seed  ) 
 

Definition at line 512 of file random-coll.c.

References _Cons, _Hi, _Lo, _Mult, and Scal.


Generated on Fri Nov 28 12:59:43 2008 for Go4-v3.04-1 by  doxygen 1.4.2