⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 quasi.h

📁 Nistnet网络仿真软件
💻 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 + -