⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rsenc.h

📁 压缩文件中是Error Correction Coding - Mathematical Methods and Algorithms(Wiley 2005)作者:(Todd K. Moon )的配
💻 H
字号:
// RSenc.h -- a general RS encoder// Todd K. Moon// Copyright 2004 by Todd K. Moon// Permission is granted to use this program/data// for educational/research only#ifndef RSenc_H#define RSenc_h#include "GFNUM2m.h"#include "polynomialT.h"class RSenc {   int n;						// block length   int k;						// number of input symbols   int t; 						// random error correcting capability   int j0;						// exponent (j0=1 for narrow sense)   GFNUM2m A1;					// primitive element used   polynomialT<GFNUM2m> g;		// generator polynomial   polynomialT<GFNUM2m> m;		// message polynomial   polynomialT<GFNUM2m> c;		// code polynomialpublic:   RSenc(int n_in, int k_in, int t_in, int j0=1, GFNUM2m A1_in = ALPHA);   ~RSenc() { };   void encode(unsigned char *m_in, unsigned char *c_out);              // pass in array of data to be encoded, return array of encoded   GFNUM2m *encode(GFNUM2m *m_in);              // pass in array of data to be encoded, return pointer to array};#endif/*Local Variables:compile-command: "g++ -c -g RSenc.cc"End:*/

⌨️ 快捷键说明

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