GNU Radio v3.6.2-149-ga6d285d9 C++ API
|
#include <gri_fft_filter_fff_generic.h>
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. |
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).
decimation | The decimation rate of the filter (int) |
taps | The filter taps (float) |
nthreads | The number of threads for the FFT to use (int) |
int gri_fft_filter_fff_generic::filter | ( | int | nitems, |
const float * | input, | ||
float * | output | ||
) |
Perform the filter operation.
nitems | The number of items to produce |
input | The input vector to be filtered |
output | The result of the filter operation |
int gri_fft_filter_fff_generic::nthreads | ( | ) | const |
Get number of threads being used.
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
taps | The filter taps (float) |