11 #ifndef INCLUDED_GR_RANDOM_H
12 #define INCLUDED_GR_RANDOM_H
35 std::uniform_real_distribution<float>
40 random(
unsigned int seed = 0,
int min_integer = 0,
int max_integer = 2);
pseudo random number generator
Definition: random.h:28
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...
void reseed(unsigned int seed)
Change the seed for the initialized number generator. seed = 0 initializes the random number generato...
void set_integer_limits(const int minimum, const int maximum)
std::uniform_int_distribution d_integer_dis
Definition: random.h:37
float impulse(float factor)
Exponentially distributed random numbers with values less than or equal to factor replaced with zero....
float ran1()
Uniform random numbers in the range [0.0, 1.0)
gr_complex rayleigh_complex()
Normally distributed random numbers with zero mean and variance 1 on real and imaginary part....
float laplacian()
Laplacian distributed random numbers with zero mean and variance 1.
long d_seed
Definition: random.h:30
std::mt19937 d_rng
Definition: random.h:34
std::uniform_real_distribution< float > d_uniform
Definition: random.h:36
float d_gauss_value
Definition: random.h:32
bool d_gauss_stored
Definition: random.h:31
float gasdev()
Normally distributed random numbers (Gaussian distribution with zero mean and variance 1)
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
std::complex< float > gr_complex
Definition: gr_complex.h:15
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29