GNU Radio 3.7.1 C++ API
gr::analog::noise_source_c Class Reference

Random number source. More...

#include <noise_source_c.h>

Inheritance diagram for gr::analog::noise_source_c:

List of all members.

Public Types

typedef boost::shared_ptr
< noise_source_c
sptr

Public Member Functions

virtual void set_type (noise_type_t type)=0
virtual void set_amplitude (float ampl)=0
virtual noise_type_t type () const =0
virtual float amplitude () const =0

Static Public Member Functions

static sptr make (noise_type_t type, float ampl, long seed=0)

Detailed Description

Random number source.

Generate random values from different distributions. Currently, only Gaussian and uniform are enabled.


Member Typedef Documentation


Member Function Documentation

virtual float gr::analog::noise_source_c::amplitude ( ) const [pure virtual]
static sptr gr::analog::noise_source_c::make ( noise_type_t  type,
float  ampl,
long  seed = 0 
) [static]

Build a noise source

Parameters:
typethe random distribution to use (see gnuradio/analog/noise_type.h)
ampla scaling factor for the output
seedseed for random generators. Note that for uniform and Gaussian distributions, this should be a negative number.
virtual void gr::analog::noise_source_c::set_amplitude ( float  ampl) [pure virtual]
virtual void gr::analog::noise_source_c::set_type ( noise_type_t  type) [pure virtual]
virtual noise_type_t gr::analog::noise_source_c::type ( ) const [pure virtual]

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