gr::random
gnuradio/random.h
long long gr::random::d_seed d_seed gr::random::d_seed
bool bool gr::random::d_gauss_stored d_gauss_stored gr::random::d_gauss_stored
float float gr::random::d_gauss_value d_gauss_value gr::random::d_gauss_value
xoroshiro128p_prng xoroshiro128p_prng gr::random::d_rng d_rng gr::random::d_rng
std::uniform_real_distribution< float > std::uniform_real_distribution<float> gr::random::d_uniform d_uniform gr::random::d_uniform
std::uniform_int_distribution< int64_t > std::uniform_int_distribution<int64_t> gr::random::d_integer_dis d_integer_dis gr::random::d_integer_dis
gr::random::random
(uint64_t seed=0, int64_t min_integer=0, int64_t max_integer=2)
random
gr::random::random
uint64_t seed 0
int64_t min_integer 0
int64_t max_integer 2
gr::random::~random
()
~random
gr::random::~random
void void gr::random::reseed (uint64_t seed) reseed gr::random::reseed uint64_t seed

Change the seed for the initialized number generator. seed = 0 initializes the random number generator with the system time.

void void gr::random::set_integer_limits (int64_t minimum, int64_t maximum) set_integer_limits gr::random::set_integer_limits int64_t minimum int64_t maximum

set minimum and maximum for integer random number generator. Limits are [minimum, maximum) Default: [0, std::numeric_limits< IntType >::max)]

int64_t int64_t gr::random::ran_int () ran_int gr::random::ran_int

Uniform random integers in the range set by 'set_integer_limits' [min, max).

float float gr::random::ran1 () ran1 gr::random::ran1

Uniform random numbers in the range [0.0, 1.0).

float float gr::random::gasdev () gasdev gr::random::gasdev

Normally distributed random numbers (Gaussian distribution with zero mean and variance 1).

float float gr::random::laplacian () laplacian gr::random::laplacian

Laplacian distributed random numbers with zero mean and variance 1.

float float gr::random::rayleigh () rayleigh gr::random::rayleigh

Rayleigh distributed random numbers (zero mean and variance 1 for the underlying Gaussian distributions).

float float gr::random::impulse (float factor) impulse gr::random::impulse float factor

Exponentially distributed random numbers with values less than or equal to factor replaced with zero. The underlying exponential distribution has mean sqrt(2) and variance 2.

gr_complex gr_complex gr::random::rayleigh_complex () rayleigh_complex gr::random::rayleigh_complex

Normally distributed random numbers with zero mean and variance 1 on real and imaginary part. This results in a Rayleigh distribution for the amplitude and an uniform distribution for the phase.

pseudo random number generator

gr::random
d_rng
gr::xoroshiro128p_prng
- gr::random
  d_gauss_stored
- gr::random
  d_gauss_value
- gr::random
  d_integer_dis
- gr::random
  d_rng
- gr::random
  d_seed
- gr::random
  d_uniform
- gr::random
  gasdev
- gr::random
  impulse
- gr::random
  laplacian
- gr::random
  ran1
- gr::random
  ran_int
- gr::random
  random
- gr::random
  rayleigh
- gr::random
  rayleigh_complex
- gr::random
  reseed
- gr::random
  set_integer_limits
- gr::random
  ~random