Ordinary AWGN Channel for cvec or vec inputs and outputs. More...
#include <itpp/comm/channel.h>
Public Member Functions | |
AWGN_Channel (double noisevar=0.0) | |
Class constructor. Sets the noise variance (for complex-valued channels the sum of real and imaginary parts) | |
void | set_noise (double noisevar) |
Set noise variance (for complex-valued channels the sum of real and imaginary parts) | |
double | get_noise () const |
Get noise variance (for complex-valued channels the sum of real and imaginary parts) | |
cvec | operator() (const cvec &input) |
Feed the complex input input through the complex-valued AWGN channel. | |
vec | operator() (const vec &input) |
Feed the input through the real-valued AWGN channel. | |
Ordinary AWGN Channel for cvec or vec inputs and outputs.
For real signals, the input parameter (noisevar) denotes the noise variance per real dimension. Therefore, it should be set to
Example:
|
inline |
Class constructor. Sets the noise variance (for complex-valued channels the sum of real and imaginary parts)
Definition at line 1092 of file channel.h.
References itpp::sqrt().
|
inline |
|
inline |
Get noise variance (for complex-valued channels the sum of real and imaginary parts)
Definition at line 1096 of file channel.h.
References itpp::sqr().
cvec itpp::AWGN_Channel::operator() | ( | const cvec & | input | ) |
Feed the complex input input through the complex-valued AWGN channel.
Definition at line 1550 of file channel.cpp.
References itpp::Complex_Normal_RNG::sample_vector().
vec itpp::AWGN_Channel::operator() | ( | const vec & | input | ) |
Feed the input through the real-valued AWGN channel.
Definition at line 1560 of file channel.cpp.
References itpp::Normal_RNG::sample_vector().
Generated on Tue Dec 10 2024 04:49:37 for IT++ by Doxygen 1.12.0