GNU Radio 3.7.1 C++ API
gr::blocks::moving_average_ii Class Reference

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

#include <moving_average_ii.h>

Inheritance diagram for gr::blocks::moving_average_ii:

List of all members.

Public Types

typedef boost::shared_ptr
< moving_average_ii
sptr

Public Member Functions

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

Static Public Member Functions

static sptr make (int length, int 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_ii::length ( ) const [pure virtual]

Get the length used in the avaraging calculation.

static sptr gr::blocks::moving_average_ii::make ( int  length,
int  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 int gr::blocks::moving_average_ii::scale ( ) const [pure virtual]

Get the scale factor being used.

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

Set the length.

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

Set both the length and the scale factor together.

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

Set the scale factor.


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