?? quasi.h
字號:
/* quasi.h Quasi-Random Number generator, an object oriented implementation in C. returns an n-dimensional vector of values in 0.0..1.0 maximum n is currently hardwired to 52 See W.H. Press and S.A. Teukolsky, 1989, Quasi- (that is, Sub-) Random Numbers, Computers in Physics V3, No. 6, (Nov/Dec 1989), pp. 76-79 rcsid: @(#)quasi.h 1.5 10:15:46 4/18/94 EFC*/#ifndef QUASI_RANDOM_H_#define QUASI_RANDOM_H_ 1.5typedef struct /* data structure to maintain internal information */{ /* this allows multiple independent generators to exist in a single application (each one would have its own QRStruct) */ int err_flag; /* err_flag == 0 if all is well */ int dim; unsigned long int index; unsigned long int *ix;} QRStruct;#ifdef __cplusplusextern "C" {#endif/* initialized the data structure for this dimension */int QuasiRandomInitialize(QRStruct* qr, int dimension);/* release internal storage for this QRStruct */void QuasiRandomRelease(QRStruct* qr);/* get an n-dimensional quasi-random number */void QuasiRandomNumber(QRStruct* qr, float* x);#ifdef __cplusplus}#endif#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -