#include <modulator.h>
Public Member Functions | |
Modulator_1d (const vec &insymbols="0", const ivec &inbitmap="0") | |
Constructor. | |
virtual | ~Modulator_1d () |
Destructor. | |
virtual vec | modulate (const ivec &symbolnumbers) |
Modulate function for symbols. | |
virtual ivec | demodulate (const vec &signal) |
Demodulate function for symbols. | |
virtual vec | modulate_bits (const bvec &bits) |
Modulate function for bits. | |
virtual bvec | demodulate_bits (const vec &signal) |
Demodulate function for bits. | |
void | set (const vec &insymbols, const ivec &inbitmap) |
Set the symbol constellation and the corresponding bitmap. | |
vec | get_symbols (void) |
Get the symbol constellation. | |
ivec | get_bitmap (void) |
Get the bitmap. | |
Protected Attributes | |
int | k |
Number of bits per modulation symbol. | |
int | M |
Number of modulation symbols. | |
ivec | bitmap |
Bit mapping table. | |
vec | symbols |
Vector of modulation symbols. |
|
Constructor.
|
|
Destructor.
|
|
Demodulate function for symbols.
|
|
Demodulate function for bits.
|
|
Get the bitmap.
|
|
Get the symbol constellation.
|
|
Modulate function for symbols.
|
|
Modulate function for bits.
|
|
Set the symbol constellation and the corresponding bitmap.
|
|
Bit mapping table.
|
|
Number of bits per modulation symbol.
|
|
Number of modulation symbols.
|
|
Vector of modulation symbols.
|