Description not yet available. More...
Go to the source code of this file.
Defines | |
#define | IA1 1366 |
#define | IA2 4561 |
#define | IA3 8121 |
#define | IC1 150889 |
#define | IC2 51349 |
#define | IC3 28411 |
#define | M1 714025 |
#define | M2 243000 |
#define | M3 134456 |
#define | RM1 (1.0/M1) |
#define | RM2 (1.0/M2) |
Functions | |
double | auto_rand (long int &idum, int reset) |
Random number generator. | |
double | randn (long int &n) |
Description not yet available. | |
void | reinitialize_auto_rand () |
Description not yet available. |
Description not yet available.
Definition in file ranfill.cpp.
#define IA1 1366 |
Definition at line 26 of file ranfill.cpp.
Referenced by auto_rand().
#define IA2 4561 |
Definition at line 33 of file ranfill.cpp.
Referenced by auto_rand().
#define IA3 8121 |
Definition at line 30 of file ranfill.cpp.
Referenced by auto_rand().
#define IC1 150889 |
Definition at line 27 of file ranfill.cpp.
Referenced by auto_rand().
#define IC2 51349 |
Definition at line 34 of file ranfill.cpp.
Referenced by auto_rand().
#define IC3 28411 |
Definition at line 31 of file ranfill.cpp.
Referenced by auto_rand().
#define M1 714025 |
Definition at line 25 of file ranfill.cpp.
Referenced by auto_rand().
#define M2 243000 |
Definition at line 32 of file ranfill.cpp.
Referenced by auto_rand().
#define M3 134456 |
Definition at line 29 of file ranfill.cpp.
Referenced by auto_rand().
Definition at line 28 of file ranfill.cpp.
Referenced by auto_rand().
Definition at line 35 of file ranfill.cpp.
Referenced by auto_rand().
double auto_rand | ( | long int & | idum, |
int | reset | ||
) |
Random number generator.
The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 7
Definition at line 57 of file ranfill.cpp.
Referenced by dvar_matrix::colfill_randu(), dmatrix::colfill_randu(), dvar_matrix::colfill_randu_ni(), dmatrix::colfill_randu_ni(), dvector::fill_randbi(), dvar_vector::fill_randbi(), dvector::fill_randbi_ni(), dvar_vector::fill_randbi_ni(), dvector::fill_randu(), dvar_vector::fill_randu(), dvector::fill_randu_ni(), dvar_vector::fill_randu_ni(), randn(), reinitialize_auto_rand(), dvar_matrix::rowfill_randu(), dmatrix::rowfill_randu(), dvar_matrix::rowfill_randu_ni(), and dmatrix::rowfill_randu_ni().
double randn | ( | long int & | n | ) |
void reinitialize_auto_rand | ( | ) |
Description not yet available.
Definition at line 45 of file ranfill.cpp.
Referenced by dvar_matrix::colfill_randn(), dmatrix::colfill_randn(), dvar_matrix::colfill_randu(), dmatrix::colfill_randu(), dvector::fill_randbi(), dvar_vector::fill_randbi(), dvector::fill_randn(), dvar_vector::fill_randn(), dvar_matrix::fill_randn(), dmatrix::fill_randn(), d3_array::fill_randn(), dvar3_array::fill_randn(), dvector::fill_randu(), dvar_vector::fill_randu(), dvar_matrix::fill_randu(), dmatrix::fill_randu(), d3_array::fill_randu(), dvar3_array::fill_randu(), dvar_matrix::rowfill_randn(), dmatrix::rowfill_randn(), dvar_matrix::rowfill_randu(), and dmatrix::rowfill_randu().
Generated on Tue Mar 8 2016 19:51:38 for ADMB Documentation by 1.8.0 |