|
GNU Radio 3.4.0 C++ API
|
FIR with internal buffer for float input, short output and float taps. More...
#include <gri_fir_filter_with_buffer_fsf.h>
Public Member Functions | |
| gri_fir_filter_with_buffer_fsf (const std::vector< float > &taps) | |
| construct new FIR with given taps. | |
| ~gri_fir_filter_with_buffer_fsf () | |
| short | filter (float input) |
| compute a single output value. | |
| short | filter (const float input[], unsigned long dec) |
| compute a single output value; designed for decimating filters. | |
| void | filterN (short output[], const float input[], unsigned long n) |
| compute an array of N output values. | |
| void | filterNdec (short output[], const float input[], unsigned long n, unsigned long decimate) |
| compute an array of N output values, decimating the input | |
| void | set_taps (const std::vector< float > &taps) |
install new_taps as the current taps. | |
| unsigned | ntaps () const |
| const std::vector< float > | get_taps () const |
Protected Attributes | |
| std::vector< float > | d_taps |
| float * | d_buffer |
| unsigned int | d_idx |
FIR with internal buffer for float input, short output and float taps.
| gri_fir_filter_with_buffer_fsf::gri_fir_filter_with_buffer_fsf | ( | const std::vector< float > & | taps | ) |
construct new FIR with given taps.
Note that taps must be in forward order, e.g., coefficient 0 is stored in new_taps[0], coefficient 1 is stored in new_taps[1], etc.
| gri_fir_filter_with_buffer_fsf::~gri_fir_filter_with_buffer_fsf | ( | ) |
| short gri_fir_filter_with_buffer_fsf::filter | ( | float | input | ) |
compute a single output value.
input is a single input value of the filter type
| short gri_fir_filter_with_buffer_fsf::filter | ( | const float | input[], |
| unsigned long | dec | ||
| ) |
compute a single output value; designed for decimating filters.
input is a single input value of the filter type. The value of dec is the decimating value of the filter, so input[] must have dec valid values. The filter pushes dec number of items onto the circ. buffer before computing a single output.
| void gri_fir_filter_with_buffer_fsf::filterN | ( | short | output[], |
| const float | input[], | ||
| unsigned long | n | ||
| ) |
| void gri_fir_filter_with_buffer_fsf::filterNdec | ( | short | output[], |
| const float | input[], | ||
| unsigned long | n, | ||
| unsigned long | decimate | ||
| ) |
| const std::vector<float> gri_fir_filter_with_buffer_fsf::get_taps | ( | ) | const [inline] |
References d_taps, and gr_reverse().
| unsigned gri_fir_filter_with_buffer_fsf::ntaps | ( | ) | const [inline] |
References d_taps.
| void gri_fir_filter_with_buffer_fsf::set_taps | ( | const std::vector< float > & | taps | ) |
install new_taps as the current taps.
float* gri_fir_filter_with_buffer_fsf::d_buffer [protected] |
unsigned int gri_fir_filter_with_buffer_fsf::d_idx [protected] |
std::vector<float> gri_fir_filter_with_buffer_fsf::d_taps [protected] |
Referenced by get_taps(), and ntaps().