GNU Radio 3.6.5 C++ API

gr::filter::interp_fir_filter_fff Class Reference

Interpolating FIR filter with float input, float output and float taps. More...

#include <interp_fir_filter_fff.h>

Inheritance diagram for gr::filter::interp_fir_filter_fff:
gr_sync_interpolator gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter gr::filter::interp_fir_filter_fff_impl

List of all members.

Public Types

typedef boost::shared_ptr
< interp_fir_filter_fff
sptr

Public Member Functions

virtual void set_taps (const std::vector< float > &taps)=0
virtual std::vector< float > taps () const =0

Static Public Member Functions

static sptr make (unsigned interpolation, const std::vector< float > &taps)
 Interpolating FIR filter with float input, float output, and float taps.

Detailed Description

Interpolating FIR filter with float input, float output and float taps.

The fir_filter_XXX blocks create finite impulse response (FIR) filters that perform the convolution in the time domain:

   out = 0
   for i in ntaps:
      out += input[n-i] * taps[i]

The taps are a C++ vector (or Python list) of values of the type specified by the third letter in the block's suffix. For this block, the value is of type float. Taps can be created using the firdes or optfir tools.

These versions of the filter can also act as up-samplers (or interpolators) by specifying an integer value for interpolation.


Member Typedef Documentation


Member Function Documentation

static sptr gr::filter::interp_fir_filter_fff::make ( unsigned  interpolation,
const std::vector< float > &  taps 
) [static]

Interpolating FIR filter with float input, float output, and float taps.

Parameters:
interpolationset the integer interpolation rate
tapsa vector/list of taps of type float
virtual void gr::filter::interp_fir_filter_fff::set_taps ( const std::vector< float > &  taps) [pure virtual]
virtual std::vector<float> gr::filter::interp_fir_filter_fff::taps ( ) const [pure virtual]

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