awgn.h
来自「有关卷积编码的维特比算法,是硬判决的啊,希望大家」· C头文件 代码 · 共 29 行
H
29 行
#ifndef AWGN_H_
#define AWGN_H_
#include"define.h"
#define M32(x) ((((unsigned long)1 << 32)-1)&(x))
class AWGN
{
private :
unsigned long x1[521];
int i;
public :
AWGN();
~AWGN();
void Rnd521(void);
void InitRnd(unsigned long);
unsigned long iRnd(void);
double UniRnd(void) ; // random number from 0.0 to 1.0
double Rand(void); // random number std = 1, mean = 0
int SeqGen(void);
int jrnd;
void attn(double*,double*,int,double,int,int,double &);
void aw(double *,double *,int,double &);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?