GNU Radio 3.5.3.2 C++ API
gri_fft_filter_fff_generic Class Reference

#include <gri_fft_filter_fff_generic.h>

List of all members.

Public Member Functions

 gri_fft_filter_fff_generic (int decimation, const std::vector< float > &taps, int nthreads=1)
 Construct a FFT filter for float vectors with the given taps and decimation rate.
 ~gri_fft_filter_fff_generic ()
int set_taps (const std::vector< float > &taps)
 Set new taps for the filter.
void set_nthreads (int n)
 Set number of threads to use.
int nthreads () const
 Get number of threads being used.
int filter (int nitems, const float *input, float *output)
 Perform the filter operation.

Constructor & Destructor Documentation

gri_fft_filter_fff_generic::gri_fft_filter_fff_generic ( int  decimation,
const std::vector< float > &  taps,
int  nthreads = 1 
)

Construct a FFT filter for float vectors with the given taps and decimation rate.

This is the basic implementation for performing FFT filter for fast convolution in other blocks for floating point vectors (such as gr_fft_filter_fff).

Parameters:
decimationThe decimation rate of the filter (int)
tapsThe filter taps (float)
nthreadsThe number of threads for the FFT to use (int)
gri_fft_filter_fff_generic::~gri_fft_filter_fff_generic ( )

Member Function Documentation

int gri_fft_filter_fff_generic::filter ( int  nitems,
const float *  input,
float *  output 
)

Perform the filter operation.

Parameters:
nitemsThe number of items to produce
inputThe input vector to be filtered
outputThe result of the filter operation
int gri_fft_filter_fff_generic::nthreads ( ) const

Get number of threads being used.

void gri_fft_filter_fff_generic::set_nthreads ( int  n)

Set number of threads to use.

int gri_fft_filter_fff_generic::set_taps ( const std::vector< float > &  taps)

Set new taps for the filter.

Sets new taps and resets the class properties to handle different sizes

Parameters:
tapsThe filter taps (float)

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