GNU Radio 3.6.5 C++ API

gr::blocks::moving_average_ff_impl Class Reference

#include <moving_average_ff_impl.h>

Inheritance diagram for gr::blocks::moving_average_ff_impl:
gr::blocks::moving_average_ff gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 moving_average_ff_impl (int length, float scale, int max_iter=4096)
 ~moving_average_ff_impl ()
int length () const
float scale () const
void set_length_and_scale (int length, float scale)
void set_length (int length)
void set_scale (float 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_ff_impl::moving_average_ff_impl ( int  length,
float  scale,
int  max_iter = 4096 
)
gr::blocks::moving_average_ff_impl::~moving_average_ff_impl ( )

Member Function Documentation

int gr::blocks::moving_average_ff_impl::length ( ) const [inline, virtual]

Get the length used in the avaraging calculation.

Implements gr::blocks::moving_average_ff.

float gr::blocks::moving_average_ff_impl::scale ( ) const [inline, virtual]

Get the scale factor being used.

Implements gr::blocks::moving_average_ff.

void gr::blocks::moving_average_ff_impl::set_length ( int  length) [virtual]

Set the length.

Implements gr::blocks::moving_average_ff.

void gr::blocks::moving_average_ff_impl::set_length_and_scale ( int  length,
float  scale 
) [virtual]

Set both the length and the scale factor together.

Implements gr::blocks::moving_average_ff.

void gr::blocks::moving_average_ff_impl::set_scale ( float  scale) [virtual]

Set the scale factor.

Implements gr::blocks::moving_average_ff.

int gr::blocks::moving_average_ff_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: