sys_random.h
来自「此程序为wcdma系统当中ftp/video业务模型的c++程序仿真 通过此程序」· C头文件 代码 · 共 25 行
H
25 行
//sys_random.h
//the declaration of all random functions needed by the simulation project
//////////////////////////////////////////////////////////////////////////////
#if !defined(CDMA__SIMULATION__RANDOMFUNC__H__INCLUDE)
#define CDMA__SIMULATION__RANDOMFUNC__H__INCLUDE
#define PI 3.14159265
//void initialize(); //random program init
int xPoisson(long,float,float); //get Poisson distribution random
//int xPoisson1(Real);
//int xPoisson2(Real);
float xUniform(float down=0.0,float up=1.0); //get a random of (down,up) from uniform random
float xExponent(float); //get serve time from exponent random
float Shadow_Fading(); //get first shadow fading
float Next_Shadow_Fading(float,float,float); //get next shadow fading
int xGeometry(float); //get on/off flag from geometry random
int xMixed_Geometry(float,float,float,float); //mix geometry random
int xPareto(float,float,int); //get Pareto Distribution(float shape,float scale) with cutoff(int MTU) r.v.
float xLognormal(float,float,float,float);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?