GNU Radio 3.7.1 C++ API
|
Galois LFSR pseudo-random source generating float outputs -1.0 - 1.0. More...
#include <glfsr_source_f.h>
Public Types | |
typedef boost::shared_ptr < glfsr_source_f > | sptr |
Public Member Functions | |
virtual unsigned int | period () const =0 |
virtual int | mask () const =0 |
Static Public Member Functions | |
static sptr | make (int degree, bool repeat=true, int mask=0, int seed=1) |
Galois LFSR pseudo-random source generating float outputs -1.0 - 1.0.
static sptr gr::digital::glfsr_source_f::make | ( | int | degree, |
bool | repeat = true , |
||
int | mask = 0 , |
||
int | seed = 1 |
||
) | [static] |
Make a Galois LFSR pseudo-random source block.
degree | Degree of shift register must be in [1, 32]. If mask is 0, the degree determines a default mask (see digital_impl_glfsr.cc for the mapping). |
repeat | Set to repeat sequence. |
mask | Allows a user-defined bit mask for indexes of the shift register to feed back. |
seed | Initial setting for values in shift register. |
virtual int gr::digital::glfsr_source_f::mask | ( | ) | const [pure virtual] |
virtual unsigned int gr::digital::glfsr_source_f::period | ( | ) | const [pure virtual] |