vdsim.h

来自「卷积码的Viterbi解码器」· C头文件 代码 · 共 27 行

H
27
字号
#define K 3              /* constraint length */
#define PI 3.141592654   /* circumference of circle divided by diameter */

#define MSG_LEN 5000  /* how many bits in each test message */
#define DOENC            /* test with convolutional encoding/Viterbi decoding */
#undef  DONOENC          /* test with no coding */
//#define  DONOENC          /* test with no coding */
#define LOESN0 0.0  //0908       /* minimum Es/No at which to test */
#define HIESN0 8.0       /* maximum Es/No at which to test */
#define ESN0STEP 0.5     /* Es/No increment for test driver */

#if K == 3
#define TWOTOTHEM 4      /* 2^(K - 1) -- change as required */
#endif

#if K == 5
#define TWOTOTHEM 16      /* 2^(K - 1) -- change as required */
#endif

#if K == 7
#define TWOTOTHEM 64      /* 2^(K - 1) -- change as required */
#endif

#if K == 9
#define TWOTOTHEM 256      /* 2^(K - 1) -- change as required */
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?