📄 channel.h
字号:
#ifndef channel_h
#define channel_h
/********************************************************************
信道产生需要用到的函数声明和结构体定义
*********************************************************************/
/****************************************************************
函数声明
****************************************************************/
double random_u(struct seed *rseed);
double gauss_g(struct awgn *gauss);
void initial_gauss(struct awgn *point,struct seed *pseed, double ave, double sigma);
/****************************************************************
结构体定义
****************************************************************/
//随机数种子
struct seed
{
long x;
long y;
long z;
};
//AWGN
struct awgn
{
struct seed gauss_seed;
double sigma;
double ave;
};
//Jakes模型
typedef struct
{
int osci_num;//振荡器个数
double sample_rate;//采样率
double fmax;//多普勒频率最大值
double init_i_phase[64];//I路初始相位,随机生成
double init_q_phase[64];//Q路初始相位,随机生成
double wd[64];//2*PI*fi
double sigma;
double time;
double time_step;
} JakeSt;
//多径信道模型
typedef struct
{
double gain;
int delay;
int pos;
JakeSt jake;
} MultiPathSt;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -