GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
random-coll.h File Reference

Go to the source code of this file.

Functions

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

Function Documentation

◆ p_dBeta()

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

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

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

◆ p_dExponential()

double p_dExponential ( double lambda,
unsigned int * seed )

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

References p_dUniform().

Referenced by TGo4MbsRandom::rand_event().

◆ p_dGammaGen()

double p_dGammaGen ( double A,
unsigned * seed )

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

References p_dGammaInt(), and p_dUniform().

Referenced by p_dBeta().

◆ p_dGammaInt()

double p_dGammaInt ( int a,
unsigned int * seed )

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

References GAMMA_TURNING_POINT, and p_dUniform().

Referenced by p_dGammaGen().

◆ p_dNormal()

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

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

References p_dUniform().

Referenced by TGo4MbsRandom::rand_event().

◆ p_dUniform()

double p_dUniform ( unsigned * seed)

◆ p_iBinomial()

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

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

References p_dUniform().

◆ p_iGeometric()

int p_iGeometric ( double p,
unsigned int * seed )

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

References GEOMETRIC_TURNING_POINT, and p_dUniform().

◆ p_iPoisson()

int p_iPoisson ( double mu,
unsigned * seed )

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

References p_dUniform().

◆ p_iUniform()

unsigned p_iUniform ( unsigned * seed)

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

References _Cons, _Hi, _Lo, and _Mult.