bpskmod.h

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

H
34
字号
// BPSKmod.h --- a simple BPSK modulator to modulate a scalar of data// Todd K. Moon// Copyright 2004 by Todd K. Moon// Permission is granted to use this program/data// for educational/research only#ifndef BPSKMOD_H#define  BPSKMOD_Hclass BPSKmod {public:   double a;					// signal amplitude   BPSKmod(double a_in=1) {	  a = a_in;   }   ~BPSKmod() {}   double mod(unsigned char bitin) {	  double v = a*(2*bitin-1);	  return v;   }};#endif/*Local Variables:compile-command: "g++ -c BPSKmod.h"End:*/

⌨️ 快捷键说明

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