SPUC
3.0
|
Gaussian noise routine. More...
#include <noise.h>
Public Member Functions | |
noise (float_type i=1349555.0) | |
Random seed. More... | |
float_type | gauss () |
Gaussian noise. More... | |
complex< float_type > | Cgauss (void) |
complex gaussian noise More... | |
float_type | uni () |
Uniform noise. More... | |
float_type | uniform () |
Uniform noise. More... | |
void | set_seed (unsigned i=1349555) |
Change seed. More... | |
Protected Attributes | |
char | s |
float_type | x |
Switch. More... | |
long | idum |
Saved calculated value. More... | |
Gaussian noise routine.
Can create (float_type) gaussian white noise,
complex<float_type> gaussian white noise
or (float_type) uniform noise
Requires complex template class
SPUC::noise::noise | ( | float_type | i = 1349555.0 | ) |
Random seed.
Constructor
complex< float_type > SPUC::noise::Cgauss | ( | void | ) |
complex gaussian noise
References SPUC::sqrt(), and uniform().
Referenced by SPUC::fading_channel::generate_channel(), SPUC::baud_eq_env< Numeric >::step(), SPUC::sim_qpsk< Numeric >::tx_step(), SPUC::sim_qpsk_variable< Numeric >::tx_step(), and SPUC::sim_qam< Numeric >::tx_step().
float_type SPUC::noise::gauss | ( | ) |
|
inline |
float_type SPUC::noise::uni | ( | void | ) |
float_type SPUC::noise::uniform | ( | void | ) |
|
protected |
Referenced by gauss().
|
protected |
Switch.
Referenced by gauss().