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

📄 binconvfir.cc.txt

📁 压缩文件中是Error Correction Coding - Mathematical Methods and Algorithms(Wiley 2005)作者:(Todd K. Moon )的配
💻 TXT
字号:
// BinConv.cc -- (n,k) binary convolutional coder// Todd K. Moon// Copyright 2004 by Todd K. Moon// Permission is granted to use this program/data// for educational/research only#include "BinConvFIR.h"			// the multi-input convolutional object#include "matalloc.h"#include <iostream>using namespace std;BinConvFIR::BinConvFIR(int in_k, int in_n, int *degs, unsigned int** h_in)   : BinConv(in_k,in_n){   int i,j;   CALLOCMATRIX(h,unsigned int, k,n);   nui = new int[k];   mem = new unsigned int[k];   maxdeg = 0;   nu = 0;   for(i = 0; i < k; i++) {	  nui[i] = degs[i];	  if(nui[i] > maxdeg) maxdeg = nui[i];	  nu += nui[i];	  for(j = 0; j < n; j++) {		 h[i][j] = h_in[i][j];	  }   }}// encode ins[0] ... ins[k-1] to get the n outputsunsigned char *BinConvFIR::encode(const unsigned char *ins){   // Fill in the blanks ...}unsigned intBinConvFIR::getstate() const{   // fill in the blanks ...}voidBinConvFIR::setstate(unsigned int state){     // fill in the blanks ...}/*Local Variables:compile-command: "g++ -o testconvFIR -g testconvFIR.cc BinConvFIR.cc"End:*/

⌨️ 快捷键说明

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