rsenc.h

来自「压缩文件中是Error Correction Coding - Mathemat」· C头文件 代码 · 共 38 行

H
38
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?