|
GNU Radio 3.6.5 C++ API
|
output is the moving sum of the last N samples, scaled by the scale factor More...
#include <moving_average_ff.h>
Public Types | |
| typedef boost::shared_ptr < moving_average_ff > | sptr |
Public Member Functions | |
| virtual int | length () const =0 |
| virtual float | scale () const =0 |
| virtual void | set_length_and_scale (int length, float scale)=0 |
| virtual void | set_length (int length)=0 |
| virtual void | set_scale (float scale)=0 |
Static Public Member Functions | |
| static sptr | make (int length, float scale, int max_iter=4096) |
output is the moving sum of the last N samples, scaled by the scale factor
| virtual int gr::blocks::moving_average_ff::length | ( | ) | const [pure virtual] |
Get the length used in the avaraging calculation.
Implemented in gr::blocks::moving_average_ff_impl.
| static sptr gr::blocks::moving_average_ff::make | ( | int | length, |
| float | scale, | ||
| int | max_iter = 4096 |
||
| ) | [static] |
Create a moving average block.
| length | Number of samples to use in the average. |
| scale | scale factor for the result. |
| max_iter | limits how long we go without flushing the accumulator This is necessary to avoid numerical instability for float and complex. |
| virtual float gr::blocks::moving_average_ff::scale | ( | ) | const [pure virtual] |
Get the scale factor being used.
Implemented in gr::blocks::moving_average_ff_impl.
| virtual void gr::blocks::moving_average_ff::set_length | ( | int | length | ) | [pure virtual] |
Set the length.
Implemented in gr::blocks::moving_average_ff_impl.
| virtual void gr::blocks::moving_average_ff::set_length_and_scale | ( | int | length, |
| float | scale | ||
| ) | [pure virtual] |
Set both the length and the scale factor together.
Implemented in gr::blocks::moving_average_ff_impl.
| virtual void gr::blocks::moving_average_ff::set_scale | ( | float | scale | ) | [pure virtual] |
Set the scale factor.
Implemented in gr::blocks::moving_average_ff_impl.