GNU Radio 3.7.3 C++ API
gr::random Class Reference

pseudo random number generator More...

#include <gnuradio/random.h>

Public Member Functions

 random (long seed=3021)
 
void reseed (long seed)
 
float ran1 ()
 uniform random deviate in the range [0.0, 1.0) More...
 
float gasdev ()
 normally distributed deviate with zero mean and variance 1 More...
 
float laplacian ()
 
float impulse (float factor)
 
float rayleigh ()
 
gr_complex rayleigh_complex ()
 

Protected Attributes

long d_seed
 
long d_iy
 
long d_iv [NTAB]
 
int d_iset
 
float d_gset
 

Static Protected Attributes

static const int NTAB = 32
 

Detailed Description

pseudo random number generator

Constructor & Destructor Documentation

gr::random::random ( long  seed = 3021)

Member Function Documentation

float gr::random::gasdev ( )

normally distributed deviate with zero mean and variance 1

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

uniform random deviate in the range [0.0, 1.0)

float gr::random::rayleigh ( )
gr_complex gr::random::rayleigh_complex ( )
void gr::random::reseed ( long  seed)

Member Data Documentation

float gr::random::d_gset
protected
int gr::random::d_iset
protected
long gr::random::d_iv[NTAB]
protected
long gr::random::d_iy
protected
long gr::random::d_seed
protected
const int gr::random::NTAB = 32
staticprotected

The documentation for this class was generated from the following file: