GNU Radio 3.6.5 C++ API

gr::blocks::moving_average_ss_impl Class Reference

#include <moving_average_ss_impl.h>

Inheritance diagram for gr::blocks::moving_average_ss_impl:
gr::blocks::moving_average_ss gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

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

Constructor & Destructor Documentation

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 ( )

Member Function Documentation

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.


The documentation for this class was generated from the following file: