GNU Radio 2.x: gr_random Class Reference

Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

# gr_random Class Reference

`#include <gr_random.h>`

List of all members.

## Detailed Description

pseudo random number generator

## Public Member Functions
| gr_random (long seed=3021)
void | reseed (long seed)
float | ran1 ()
| uniform random deviate in the range [0.0, 1.0)
float | gasdev ()
| normally distributed deviate with zero mean and variance 1
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

## Constructor & Destructor Documentation

gr_random::gr_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`[static, protected]`

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

- gr_random.h
- gr_random.cc