25#ifndef INCLUDED_BLOCKS_MOVING_AVERAGE_FF_H
26#define INCLUDED_BLOCKS_MOVING_AVERAGE_FF_H
42 typedef boost::shared_ptr<moving_average_ff>
sptr;
55 unsigned int vlen = 1);
65 virtual float scale()
const = 0;
output is the moving sum of the last N samples, scaled by the scale factor
Definition: moving_average_ff.h:39
virtual void set_length(int length)=0
virtual float scale() const =0
virtual void set_length_and_scale(int length, float scale)=0
static sptr make(int length, float scale, int max_iter=4096, unsigned int vlen=1)
virtual void set_scale(float scale)=0
virtual int length() const =0
boost::shared_ptr< moving_average_ff > sptr
Definition: moving_average_ff.h:42
synchronous 1:1 input to output with history
Definition: sync_block.h:38
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:30
Include this header to use the message passing features.
Definition: basic_block.h:45
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.