Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SPUC::MOD_PAM Class Reference
[Digital Modulation]

M-ary PAM modulator. More...

#include <modulator.h>

List of all members.

Public Member Functions

 MOD_PAM (int Mary)
 Constructor.
virtual ~MOD_PAM ()
 Destructor.
void modulate_bits (const bvec &bits, vec &out)
 Modulate bits into PAM symbols.
vec modulate_bits (const bvec &bits)
 Modulate bits into PAM symbols.
void demodulate_bits (const vec &signal, bvec &out)
 Demodulation of PAM symbols to bits.
bvec demodulate_bits (const vec &signal)
 Demodulation of PAM symbols to bits.
void set_M (int Mary)
 Set the size of the signal constellation.

Protected Attributes

int k
 Number of bits per modulation symbol.
int M
 Number of modulation symbols.
bmat bitmap
 Bit patterns for symbols in order of symbol number.
ivec bits2symbols
 Bit pattern in decimal form ordered and the corresponding symbols.
vec symbols
 A vector containing the modulation symbols.
double average_energy
 The average signal energy of the constallation.
double scaling_factor
 Scaling factor used to normalize the average energy to 1.


Detailed Description

M-ary PAM modulator.

Mary-PAM signals $ \{ M-1, \ldots, 3, 1, -1, -3, \ldots, -(M-1) \}$ . Symbol numbering is from right to left in increasing order. Gray encoded bitmapping is used.

The symbols are normalized so that the average energy is 1. That is, normalized with $ \sqrt{(M^2-1)/3}$ .


Constructor & Destructor Documentation

SPUC::MOD_PAM::MOD_PAM int  Mary  )  [inline]
 

Constructor.

Here is the call graph for this function:

virtual SPUC::MOD_PAM::~MOD_PAM  )  [inline, virtual]
 

Destructor.


Member Function Documentation

bvec MOD_PAM::demodulate_bits const vec &  signal  ) 
 

Demodulation of PAM symbols to bits.

void MOD_PAM::demodulate_bits const vec &  signal,
bvec &  out
 

Demodulation of PAM symbols to bits.

vec MOD_PAM::modulate_bits const bvec &  bits  ) 
 

Modulate bits into PAM symbols.

void MOD_PAM::modulate_bits const bvec &  bits,
vec &  out
 

Modulate bits into PAM symbols.

void MOD_PAM::set_M int  Mary  ) 
 

Set the size of the signal constellation.


Member Data Documentation

double SPUC::MOD_PAM::average_energy [protected]
 

The average signal energy of the constallation.

bmat SPUC::MOD_PAM::bitmap [protected]
 

Bit patterns for symbols in order of symbol number.

ivec SPUC::MOD_PAM::bits2symbols [protected]
 

Bit pattern in decimal form ordered and the corresponding symbols.

int SPUC::MOD_PAM::k [protected]
 

Number of bits per modulation symbol.

int SPUC::MOD_PAM::M [protected]
 

Number of modulation symbols.

double SPUC::MOD_PAM::scaling_factor [protected]
 

Scaling factor used to normalize the average energy to 1.

vec SPUC::MOD_PAM::symbols [protected]
 

A vector containing the modulation symbols.


The documentation for this class was generated from the following files:
Generated on Fri Sep 16 11:07:54 2005 for spuc by  doxygen 1.4.4