|
GNU Radio 3.6.5 C++ API
|
Random number source. More...
#include <noise_source_f.h>
Public Types | |
| typedef boost::shared_ptr < noise_source_f > | 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) |
Random number source.
Generate random values from different distributions. Currently, only Gaussian and uniform are enabled.
| virtual float gr::analog::noise_source_f::amplitude | ( | ) | const [pure virtual] |
Implemented in gr::analog::noise_source_f_impl.
| static sptr gr::analog::noise_source_f::make | ( | noise_type_t | type, |
| float | ampl, | ||
| long | seed | ||
| ) | [static] |
Build a noise source
| type | the random distribution to use (see analog/noise_type.h) |
| ampl | a scaling factor for the output |
| seed | seed for random generators. Note that for uniform and Gaussian distributions, this should be a negative number. |
| virtual void gr::analog::noise_source_f::set_amplitude | ( | float | ampl | ) | [pure virtual] |
Implemented in gr::analog::noise_source_f_impl.
| virtual void gr::analog::noise_source_f::set_type | ( | noise_type_t | type | ) | [pure virtual] |
Implemented in gr::analog::noise_source_f_impl.
| virtual noise_type_t gr::analog::noise_source_f::type | ( | ) | const [pure virtual] |
Implemented in gr::analog::noise_source_f_impl.