📄 binconviir.h
字号:
// BinConvIIR.h -- declarations for an (n,k) polynomial// binary convolutional coder// Todd K. Moon// Copyright 2004 by Todd K. Moon// Permission is granted to use this program/data// for educational/research only#ifndef BINCONVIIR_H#define BINCONVIIR_H#include "BinConv.h"#include "BinTF2.h"#include "matalloc.h" // matrix allocation stuff// The code is represented as a systematic transfer function matrix// G = [1 0 ... 0 h1n/g// 0 1 ... 0 h2n/g// ...// 0 0 ... 1 hkn/g]// // The last column of G consists of transfer functions with the// same denominator// The polynomial description is the same as in TF2class BinConvIIR : public BinConv { BinTF2 tf; // multi-input transfer functionpublic: BinConvIIR(int in_k, int in_n, int degs, unsigned int* h_in, unsigned int g_in); ~BinConvIIR() { }; virtual unsigned int *encode(const unsigned char *ins); // encode one step of input virtual unsigned int getstate() const; // return the state of the encoder virtual void setstate(const unsigned int state); // set the state of the encoder};#endif/*Local Variables:compile-command: "gcc -c -g BinConvIIR.cc"End:*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -