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

📄 modulation.h

📁 ns2.1b5版本中cbrp碼
💻 H
字号:
#ifndef __modulation_h__#define __modulation_h__/* ======================================================================   Modulation Schemes	Using the receive power and information about the modulation	scheme, amount of forward error correction, etc., this class	computes whether or not a packet was received correctly or with	few enough errors that they can be tolerated.   ====================================================================== */class Modulation {	friend class NetIf;public:	virtual int BitError(double) = 0;	// success reception?protected:	int Rs;					// symbol rate per secondprivate:	// Probability of 1 bit error	virtual double ProbBitError(double) = 0;	// Probability of n bit errors	virtual double ProbBitError(double, int) = 0;};class BPSK : public Modulation {public:	BPSK(void);	BPSK(int);	virtual int BitError(double Pr);private:	virtual double ProbBitError(double Pr);	virtual double ProbBitError(double Pr, int n);};#endif /* __modulation_h__ */

⌨️ 快捷键说明

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