?? channel.h
字號(hào):
#ifndef channel_h
#define channel_h
/********************************************************************
信道產(chǎn)生需要用到的函數(shù)聲明和結(jié)構(gòu)體定義
*********************************************************************/
/****************************************************************
函數(shù)聲明
****************************************************************/
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);
/****************************************************************
結(jié)構(gòu)體定義
****************************************************************/
//隨機(jī)數(shù)種子
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;//振蕩器個(gè)數(shù)
double sample_rate;//采樣率
double fmax;//多普勒頻率最大值
double init_i_phase[64];//I路初始相位,隨機(jī)生成
double init_q_phase[64];//Q路初始相位,隨機(jī)生成
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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -