#include <modulator.h>
Public Member Functions | |
MOD_BPSK () | |
Constructor. | |
virtual | ~MOD_BPSK () |
Destructor. | |
void | modulate_bits (const bvec &bits, vec &out) |
Modulate bits into BPSK symbols. | |
vec | modulate_bits (const bvec &bits) |
Modulate bits into BPSK symbols. | |
void | modulate_bits (const bvec &bits, cvec &out) |
Modulate bits into BPSK symbols and output cvec. Symbols in real part only. | |
void | demodulate_bits (const vec &signal, bvec &out) |
Demodulate noisy BPSK symbols into bits. | |
bvec | demodulate_bits (const vec &signal) |
Demodulate noisy BPSK symbols into bits. | |
void | demodulate_bits (const cvec &signal, bvec &out) |
Demodulate noisy BPSK symbols into bits. | |
void | demodulate_soft_bits (const vec &rx_symbols, double N0, vec &soft_bits) |
Soft demodulator for AWGN channels. | |
void | demodulate_soft_bits (const cvec &rx_symbols, const cvec &channel, double N0, vec &soft_bits) |
Soft demodulator for the Rayleigh fading channel. |
Symbols used are . Bit mapping:
and
. Example of use:
BPSK bpsk;
bvec bits = "1 0 0 1 1 0 1 0 1 0 1 1 1 0";
vec symbols = bpsk.modulate_bits(bits);
|
Constructor.
|
|
Destructor.
|
|
Demodulate noisy BPSK symbols into bits. Input is cvec but received signals should be multiplied with complex conjugate of channel coefficients before demodulation. |
|
Demodulate noisy BPSK symbols into bits.
|
|
Demodulate noisy BPSK symbols into bits.
|
|
Soft demodulator for the Rayleigh fading channel. This function calculates the log-MAP estimate assuming equally likely bits transmitted
It is assumed that what is received is the complex-valued model:
|
|
Soft demodulator for AWGN channels. This function calculates the log-MAP estimate assuming equally likely bits transmitted
It is assumed that what is received is
|
|
Modulate bits into BPSK symbols and output cvec. Symbols in real part only.
|
|
Modulate bits into BPSK symbols.
|
|
Modulate bits into BPSK symbols.
|