#include <itpp/comm/modulator.h>
Public Member Functions | |
Modulator_1d (const vec &symbols="0", const ivec &bitmap="0") | |
Constructor. | |
virtual | ~Modulator_1d () |
Destructor. | |
void | set (const vec &symbols, const ivec &bitmap) |
Set the symbol constellation and the corresponding bitmap. | |
virtual double | bits_per_symbol () const |
Returns the number of bits per symbol (can be non integral). | |
vec | get_symbols () const |
Get the symbol constellation. | |
ivec | get_bitmap () const |
Get the bitmap. | |
virtual vec | modulate (const ivec &symbolnumbers) const |
Modulate function for symbols. | |
virtual ivec | demodulate (const vec &signal) const |
Demodulate function for symbols. | |
virtual vec | modulate_bits (const bvec &bits) const |
Modulate function for bits. | |
virtual bvec | demodulate_bits (const vec &signal) const |
Demodulate function for bits. | |
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. |
Definition at line 85 of file modulator.h.
|
Constructor.
Definition at line 47 of file modulator.cpp. References set(). |
|
Destructor.
Definition at line 90 of file modulator.h. |
|
Set the symbol constellation and the corresponding bitmap.
Definition at line 52 of file modulator.cpp. References bitmap, it_assert, k, itpp::log2(), M, itpp::round_i(), and symbols. Referenced by Modulator_1d(). |
|
Returns the number of bits per symbol (can be non integral).
Definition at line 96 of file modulator.h. References k. |
|
Get the symbol constellation.
Definition at line 98 of file modulator.h. References symbols. |
|
Get the bitmap.
Definition at line 100 of file modulator.h. References bitmap. |
|
Modulate function for symbols.
Definition at line 61 of file modulator.cpp. References symbols. |
|
Demodulate function for symbols.
Definition at line 84 of file modulator.cpp. |
|
Modulate function for bits.
Definition at line 69 of file modulator.cpp. References itpp::bin2dec(), bitmap, k, symbols, and itpp::zeros(). |
|
Demodulate function for bits.
Definition at line 105 of file modulator.cpp. |
|
Number of bits per modulation symbol.
Definition at line 114 of file modulator.h. Referenced by bits_per_symbol(), demodulate_bits(), modulate_bits(), and set(). |
|
Number of modulation symbols.
Definition at line 116 of file modulator.h. Referenced by demodulate(), demodulate_bits(), and set(). |
|
Bit mapping table.
Definition at line 118 of file modulator.h. Referenced by get_bitmap(), modulate_bits(), and set(). |
|
Vector of modulation symbols.
Definition at line 120 of file modulator.h. Referenced by demodulate(), demodulate_bits(), get_symbols(), modulate(), modulate_bits(), and set(). |
Generated on Thu Apr 19 14:20:03 2007 for IT++ by Doxygen 1.4.6