 |
GNU Radio Manual and C++ API Reference
3.8.2.0
The Free & Open Software Radio Ecosystem
|
|
Go to the documentation of this file.
23 #ifndef INCLUDED_GR_RANDOM_H
24 #define INCLUDED_GR_RANDOM_H
30 #include <boost/random.hpp>
47 boost::uniform_real<float>*
50 boost::variate_generator<boost::mt19937&, boost::uniform_real<float>>*
d_generator;
54 random(
unsigned int seed = 0,
int min_integer = 0,
int max_integer = 2);
float rayleigh()
Rayleigh distributed random numbers (zero mean and variance 1 for the underlying Gaussian distributio...
pseudo random number generator
Definition: random.h:40
float d_gauss_value
Definition: random.h:44
random(unsigned int seed=0, int min_integer=0, int max_integer=2)
boost::uniform_real< float > * d_uniform
Definition: random.h:48
float impulse(float factor)
Exponentially distributed random numbers with values less than or equal to factor replaced with zero....
void set_integer_limits(const int minimum, const int maximum)
float laplacian()
Laplacian distributed random numbers with zero mean and variance 1.
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:30
std::complex< float > gr_complex
Definition: gr_complex.h:27
boost::variate_generator< boost::mt19937 &, boost::uniform_int<> > * d_integer_generator
Definition: random.h:51
boost::mt19937 * d_rng
Definition: random.h:46
float gasdev()
Normally distributed random numbers (Gaussian distribution with zero mean and variance 1)
gr_complex rayleigh_complex()
Normally distributed random numbers with zero mean and variance 1 on real and imaginary part....
void reseed(unsigned int seed)
Change the seed for the initialized number generator. seed = 0 initializes the random number generato...
float ran1()
Uniform random numbers in the range [0.0, 1.0)
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
boost::uniform_int * d_integer_dis
Definition: random.h:49
long d_seed
Definition: random.h:42
boost::variate_generator< boost::mt19937 &, boost::uniform_real< float > > * d_generator
Definition: random.h:50
bool d_gauss_stored
Definition: random.h:43