CRandom Class Reference
#include <random.h>
List of all members.
|
Public Member Functions |
double | ran (void) |
| returns from zero to 1
|
unsigned long int | iran (unsigned long int imax) |
| returns integer from zero to imax-1
|
double | gauss (void) |
| weights with exp(-x^2/2)
|
void | gauss2 (double *g1, double *g2) |
double | ran_exp (void) |
| weights with exp(-x)
|
| CRandom (int seed) |
void | reset (int seed) |
void | generate_boltzmann (double mass, double T, double *p) |
Private Attributes |
gsl_rng * | randy |
Detailed Description
Definition at line 9 of file random.h.
Constructor & Destructor Documentation
CRandom::CRandom |
( |
int |
seed |
) |
|
Member Function Documentation
double CRandom::gauss |
( |
void |
|
) |
|
weights with exp(-x^2/2)
Definition at line 31 of file random.cc.
void CRandom::gauss2 |
( |
double * |
g1, |
|
|
double * |
g2 | |
|
) |
| | |
void CRandom::generate_boltzmann |
( |
double |
mass, |
|
|
double |
T, |
|
|
double * |
p | |
|
) |
| | |
long unsigned int CRandom::iran |
( |
unsigned long int |
imax |
) |
|
returns integer from zero to imax-1
Definition at line 27 of file random.cc.
double CRandom::ran |
( |
void |
|
) |
|
returns from zero to 1
Definition at line 23 of file random.cc.
double CRandom::ran_exp |
( |
void |
|
) |
|
weights with exp(-x)
Definition at line 35 of file random.cc.
void CRandom::reset |
( |
int |
seed |
) |
|
Member Data Documentation
The documentation for this class was generated from the following files:
- /Users/brown170/Projects/Current/coral_msu_repo/trunk/src/coralutils/NumMath/random.h
- /Users/brown170/Projects/Current/coral_msu_repo/trunk/src/coralutils/NumMath/random.cc