#include <modulator.h>
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. | |
Mary-PAM signals
. 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
.
|
|
Constructor.
Here is the call graph for this function: ![]() |
|
|
Destructor.
|
|
|
Demodulation of PAM symbols to bits.
|
|
||||||||||||
|
Demodulation of PAM symbols to bits.
|
|
|
Modulate bits into PAM symbols.
|
|
||||||||||||
|
Modulate bits into PAM symbols.
|
|
|
Set the size of the signal constellation.
|
|
|
The average signal energy of the constallation.
|
|
|
Bit patterns for symbols in order of symbol number.
|
|
|
Bit pattern in decimal form ordered and the corresponding symbols.
|
|
|
Number of bits per modulation symbol.
|
|
|
Number of modulation symbols.
|
|
|
Scaling factor used to normalize the average energy to 1.
|
|
|
A vector containing the modulation symbols.
|
1.4.4