GNU Radio 3.6.0 C++ API
gnuradio::extras::noise_source Class Reference

random number source More...

#include <noise_source.h>

Inheritance diagram for gnuradio::extras::noise_source:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Types

typedef boost::shared_ptr
< noise_source
sptr

Public Member Functions

virtual void set_waveform (const std::string &)=0
 Set the waveform type (UNIFORM, GAUSSIAN, LAPLACIAN, IMPULSE)
virtual std::string get_waveform (void)=0
 Get the current waveform setting.
virtual void set_offset (const std::complex< double > &)=0
 Set the offset, this is a free addition operation.
virtual std::complex< double > get_offset (void)=0
 Get the current offset setting.
virtual void set_amplitude (const std::complex< double > &)=0
 Set the scalar, this is a free multiply scalar operation.
virtual std::complex< double > get_amplitude (void)=0
 Get the current amplitude setting.
virtual void set_factor (const double &factor)=0
 Set the factor, this is used for the IMPULSE waveform.
virtual double get_factor (void)=0
 Get the current factor setting.

Static Public Member Functions

static sptr make_fc32 (const long seed=42)
static sptr make_sc32 (const long seed=42)
static sptr make_sc16 (const long seed=42)
static sptr make_sc8 (const long seed=42)
static sptr make_f32 (const long seed=42)
static sptr make_s32 (const long seed=42)
static sptr make_s16 (const long seed=42)
static sptr make_s8 (const long seed=42)

Detailed Description

random number source


Member Typedef Documentation


Member Function Documentation

virtual std::complex<double> gnuradio::extras::noise_source::get_amplitude ( void  ) [pure virtual]

Get the current amplitude setting.

virtual double gnuradio::extras::noise_source::get_factor ( void  ) [pure virtual]

Get the current factor setting.

virtual std::complex<double> gnuradio::extras::noise_source::get_offset ( void  ) [pure virtual]

Get the current offset setting.

virtual std::string gnuradio::extras::noise_source::get_waveform ( void  ) [pure virtual]

Get the current waveform setting.

static sptr gnuradio::extras::noise_source::make_f32 ( const long  seed = 42) [static]
static sptr gnuradio::extras::noise_source::make_fc32 ( const long  seed = 42) [static]
static sptr gnuradio::extras::noise_source::make_s16 ( const long  seed = 42) [static]
static sptr gnuradio::extras::noise_source::make_s32 ( const long  seed = 42) [static]
static sptr gnuradio::extras::noise_source::make_s8 ( const long  seed = 42) [static]
static sptr gnuradio::extras::noise_source::make_sc16 ( const long  seed = 42) [static]
static sptr gnuradio::extras::noise_source::make_sc32 ( const long  seed = 42) [static]
static sptr gnuradio::extras::noise_source::make_sc8 ( const long  seed = 42) [static]
virtual void gnuradio::extras::noise_source::set_amplitude ( const std::complex< double > &  ) [pure virtual]

Set the scalar, this is a free multiply scalar operation.

virtual void gnuradio::extras::noise_source::set_factor ( const double &  factor) [pure virtual]

Set the factor, this is used for the IMPULSE waveform.

virtual void gnuradio::extras::noise_source::set_offset ( const std::complex< double > &  ) [pure virtual]

Set the offset, this is a free addition operation.

virtual void gnuradio::extras::noise_source::set_waveform ( const std::string ) [pure virtual]

Set the waveform type (UNIFORM, GAUSSIAN, LAPLACIAN, IMPULSE)


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