GNU Radio 3.7.1 C++ API
gr::filter::fir_filter_ccc Class Reference

FIR filter with gr_complex input, gr_complex output, and gr_complex taps. More...

#include <fir_filter_ccc.h>

Inheritance diagram for gr::filter::fir_filter_ccc:

List of all members.

Public Types

typedef boost::shared_ptr
< fir_filter_ccc
sptr

Public Member Functions

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

Static Public Member Functions

static sptr make (int decimation, const std::vector< gr_complex > &taps)
 FIR filter with gr_complex input, gr_complex output, and gr_complex taps.

Detailed Description

FIR filter with gr_complex input, gr_complex output, and gr_complex 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 gr_complex. Taps can be created using the firdes or optfir tools.

These versions of the filter can also act as down-samplers (or decimators) by specifying an integer value for decimation.


Member Typedef Documentation


Member Function Documentation

static sptr gr::filter::fir_filter_ccc::make ( int  decimation,
const std::vector< gr_complex > &  taps 
) [static]

FIR filter with gr_complex input, gr_complex output, and gr_complex taps.

Parameters:
decimationset the integer decimation rate
tapsa vector/list of taps of type gr_complex
virtual void gr::filter::fir_filter_ccc::set_taps ( const std::vector< gr_complex > &  taps) [pure virtual]
virtual std::vector<gr_complex> gr::filter::fir_filter_ccc::taps ( ) const [pure virtual]

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