12 #ifndef MOVING_AVERAGE_H 13 #define MOVING_AVERAGE_H 31 typedef std::shared_ptr<moving_average<T>>
sptr;
42 static sptr make(
int length, T scale,
int max_iter = 4096,
unsigned int vlen = 1);
47 virtual int length()
const = 0;
52 virtual T scale()
const = 0;
57 virtual void set_length_and_scale(
int length, T scale) = 0;
62 virtual void set_length(
int length) = 0;
67 virtual void set_scale(T scale) = 0;
moving_average< float > moving_average_ff
Definition: moving_average.h:72
output is the moving sum of the last N samples, scaled by the scale factor
Definition: moving_average.h:27
std::shared_ptr< moving_average< T > > sptr
Definition: moving_average.h:31
GNU Radio logging wrapper.
Definition: basic_block.h:29
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
synchronous 1:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_block.h:25
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.
moving_average< std::int32_t > moving_average_ii
Definition: moving_average.h:71
moving_average< gr_complex > moving_average_cc
Definition: moving_average.h:73
moving_average< std::int16_t > moving_average_ss
Definition: moving_average.h:70