|
GNU Radio 3.7.1 C++ API
|
Random number source. More...
#include <fastnoise_source_s.h>

Public Types | |
| typedef boost::shared_ptr < fastnoise_source_s > | 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, long samples=1024 *16) |
| Make a fast noise source. | |
Random number source.
Generate random values from different distributions. Currently, only Gaussian and uniform are enabled.
| virtual float gr::analog::fastnoise_source_s::amplitude | ( | ) | const [pure virtual] |
| static sptr gr::analog::fastnoise_source_s::make | ( | noise_type_t | type, |
| float | ampl, | ||
| long | seed = 0, |
||
| long | samples = 1024 *16 |
||
| ) | [static] |
Make a fast noise source.
| type | the random distribution to use (see gnuradio/analog/noise_type.h) |
| ampl | a scaling factor for the output |
| seed | seed for random generators. Note that for uniform and |
| samples | Number of samples to pre-generate Gaussian distributions, this should be a negative number. |
| virtual void gr::analog::fastnoise_source_s::set_amplitude | ( | float | ampl | ) | [pure virtual] |
| virtual void gr::analog::fastnoise_source_s::set_type | ( | noise_type_t | type | ) | [pure virtual] |
| virtual noise_type_t gr::analog::fastnoise_source_s::type | ( | ) | const [pure virtual] |