modulation.h

来自「ns2.1b5版本中cbrp碼」· C头文件 代码 · 共 48 行

H
48
字号
#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 + =
减小字号Ctrl + -
显示快捷键?