GNU Radio 3.6.5 C++ API

gr::blocks::moving_average_cc Class Reference

output is the moving sum of the last N samples, scaled by the scale factor More...

#include <moving_average_cc.h>

Inheritance diagram for gr::blocks::moving_average_cc:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter gr::blocks::moving_average_cc_impl

List of all members.

Public Types

typedef boost::shared_ptr
< moving_average_cc
sptr

Public Member Functions

virtual int length () const =0
virtual gr_complex scale () const =0
virtual void set_length_and_scale (int length, gr_complex scale)=0
virtual void set_length (int length)=0
virtual void set_scale (gr_complex scale)=0

Static Public Member Functions

static sptr make (int length, gr_complex scale, int max_iter=4096)

Detailed Description

output is the moving sum of the last N samples, scaled by the scale factor


Member Typedef Documentation


Member Function Documentation

virtual int gr::blocks::moving_average_cc::length ( ) const [pure virtual]

Get the length used in the avaraging calculation.

Implemented in gr::blocks::moving_average_cc_impl.

static sptr gr::blocks::moving_average_cc::make ( int  length,
gr_complex  scale,
int  max_iter = 4096 
) [static]

Create a moving average block.

Parameters:
lengthNumber of samples to use in the average.
scalescale factor for the result.
max_iterlimits how long we go without flushing the accumulator This is necessary to avoid numerical instability for float and complex.
virtual gr_complex gr::blocks::moving_average_cc::scale ( ) const [pure virtual]

Get the scale factor being used.

Implemented in gr::blocks::moving_average_cc_impl.

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

Set the length.

Implemented in gr::blocks::moving_average_cc_impl.

virtual void gr::blocks::moving_average_cc::set_length_and_scale ( int  length,
gr_complex  scale 
) [pure virtual]

Set both the length and the scale factor together.

Implemented in gr::blocks::moving_average_cc_impl.

virtual void gr::blocks::moving_average_cc::set_scale ( gr_complex  scale) [pure virtual]

Set the scale factor.

Implemented in gr::blocks::moving_average_cc_impl.


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