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

📄 binconv.h

📁 压缩文件中是Error Correction Coding - Mathematical Methods and Algorithms(Wiley 2005)作者:(Todd K. Moon )的配
💻 H
字号:
// BinConv.h -- declarations for the base class of a Binary // Convolutional encoder// This is then specialized by inheritance to FIR or IIR encoders// Todd K. Moon// Copyright 2004 by Todd K. Moon// Permission is granted to use this program/data// for educational/research only#ifndef BINCONV_H#define BINCONV_Hclass BinConv {protected:   unsigned char *outs;			// array of n outputspublic:   int n;						// number of outputs   int k;						// number of inputs   int nu;						// total of row degrees (constraint length)   BinConv(int in_k, int in_n) {	  k = in_k;	  n = in_n;	  outs = new unsigned char[n]; // output array   }   ~BinConv() { delete[] outs; };   virtual unsigned char *encode(const unsigned char *ins) = 0;                               // encode one step of input (pure virtual)   virtual unsigned int getstate() const = 0;                               // Get the state of the encoder   virtual void setstate(const unsigned int state) = 0;                               // Set the state of the encoder};#endif/*Local Variables:compile-command: "gcc -c -g BinConv.cc"End:*/

⌨️ 快捷键说明

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