GNU Radio 3.6.5 C++ API
|
#include <moving_average_ss_impl.h>
Public Member Functions | |
moving_average_ss_impl (int length, short scale, int max_iter=4096) | |
~moving_average_ss_impl () | |
int | length () const |
short | scale () const |
void | set_length_and_scale (int length, short scale) |
void | set_length (int length) |
void | set_scale (short scale) |
int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
just like gr_block::general_work, only this arranges to call consume_each for you |
gr::blocks::moving_average_ss_impl::moving_average_ss_impl | ( | int | length, |
short | scale, | ||
int | max_iter = 4096 |
||
) |
gr::blocks::moving_average_ss_impl::~moving_average_ss_impl | ( | ) |
int gr::blocks::moving_average_ss_impl::length | ( | ) | const [inline, virtual] |
Get the length used in the avaraging calculation.
Implements gr::blocks::moving_average_ss.
short gr::blocks::moving_average_ss_impl::scale | ( | ) | const [inline, virtual] |
Get the scale factor being used.
Implements gr::blocks::moving_average_ss.
void gr::blocks::moving_average_ss_impl::set_length | ( | int | length | ) | [virtual] |
Set the length.
Implements gr::blocks::moving_average_ss.
void gr::blocks::moving_average_ss_impl::set_length_and_scale | ( | int | length, |
short | scale | ||
) | [virtual] |
Set both the length and the scale factor together.
Implements gr::blocks::moving_average_ss.
void gr::blocks::moving_average_ss_impl::set_scale | ( | short | scale | ) | [virtual] |
Set the scale factor.
Implements gr::blocks::moving_average_ss.
int gr::blocks::moving_average_ss_impl::work | ( | int | noutput_items, |
gr_vector_const_void_star & | input_items, | ||
gr_vector_void_star & | output_items | ||
) | [virtual] |
just like gr_block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr_sync_block.