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

📄 binlfsr.h

📁 压缩文件中是Error Correction Coding - Mathematical Methods and Algorithms(Wiley 2005)作者:(Todd K. Moon )的配
💻 H
字号:
// BinLFSR.h -- declarations for BinLFSR class// Todd K. Moon// Copyright 2004 by Todd K. Moon// Permission is granted to use this program/data// for educational/research only#ifndef BinLFSR_H#define BinLFSR_Hclass BinLFSR {   int g;   int state;   int mask;   int mask1;   int n;public:   BinLFSR(void) { g=n=state=mask=mask1=0;}// default constructor   BinLFSR(int g, int n, int initstate=1);// constructor   ~BinLFSR() {};                        // destructor   void setstate(int state);             // set the state   char step(void);                      // step once; return output   char step(int &state);                // step once; return output and state   void steps(int nstep, char *outputs); // step nstep times};#endif/*Local Variables:compile-command: "gcc -c -g BinLFSR.cc"End:*/

⌨️ 快捷键说明

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