GNU Radio 3.6.5 C++ API

FIR filter with float input, short output, and float taps. More...
#include <fir_filter_fsf.h>
Public Types  
typedef boost::shared_ptr < fir_filter_fsf >  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 (int decimation, const std::vector< float > &taps) 
FIR filter with float input, short output, and float taps. 
FIR filter with float input, short 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[ni] * 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 downsamplers (or decimators) by specifying an integer value for decimation
.
static sptr gr::filter::fir_filter_fsf::make  (  int  decimation, 
const std::vector< float > &  taps  
)  [static] 
FIR filter with float input, short output, and float taps.
decimation  set the integer decimation rate 
taps  a vector/list of taps of type float 
virtual void gr::filter::fir_filter_fsf::set_taps  (  const std::vector< float > &  taps  )  [pure virtual] 
Implemented in gr::filter::fir_filter_fsf_impl.
virtual std::vector<float> gr::filter::fir_filter_fsf::taps  (  )  const [pure virtual] 
Implemented in gr::filter::fir_filter_fsf_impl.