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

📄 bpskmodvec.h

📁 压缩文件中是Error Correction Coding - Mathematical Methods and Algorithms(Wiley 2005)作者:(Todd K. Moon )的配
💻 H
字号:
// BPSKmodvec.h --- a simple BPSK modulator to modulate vectors of data// Todd K. Moon// Copyright 2004 by Todd K. Moon// Permission is granted to use this program/data// for educational/research only#ifndef BPSKMODVEC_H#define  BPSKMODVEC_H#include "BPSKmod.h"class BPSKmodvec {   int n;						// length of vectorpublic:   double *v;					// vector of data   BPSKmod mod1;				// scalar modulator   BPSKmodvec(int in_n,double a_in=1) : mod1(a_in) {	  n = in_n;	  v = new double[n];   }   ~BPSKmodvec() {delete[] v;}   double *mod(unsigned char *bitsin) {	  for(int i = 0; i < n; i++) {		 v[i] = mod1.mod(bitsin[i]);	  }	  return v;   }};#endif/*Local Variables:compile-command: "g++ -c BPSKmodvec.h"End:*/

⌨️ 快捷键说明

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