GNU Radio 3.6.5 C++ API

gr::blocks::moving_average_ii_impl Class Reference

#include <moving_average_ii_impl.h>

Inheritance diagram for gr::blocks::moving_average_ii_impl:
gr::blocks::moving_average_ii gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

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

Member Function Documentation

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

Get the length used in the avaraging calculation.

Implements gr::blocks::moving_average_ii.

int gr::blocks::moving_average_ii_impl::scale ( ) const [inline, virtual]

Get the scale factor being used.

Implements gr::blocks::moving_average_ii.

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

Set the length.

Implements gr::blocks::moving_average_ii.

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

Set both the length and the scale factor together.

Implements gr::blocks::moving_average_ii.

void gr::blocks::moving_average_ii_impl::set_scale ( int  scale) [virtual]

Set the scale factor.

Implements gr::blocks::moving_average_ii.

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