GNU Radio 3.6.4.1 C++ API
|
base class template for Infinite Impulse Response filter (IIR) More...
#include <iir_filter.h>
Public Member Functions | |
iir_filter (const std::vector< tap_type > &fftaps, const std::vector< tap_type > &fbtaps) throw (std::invalid_argument) | |
Construct an IIR with the given taps. | |
iir_filter () | |
~iir_filter () | |
o_type | filter (const i_type input) |
compute a single output value. | |
void | filter_n (o_type output[], const i_type input[], long n) |
compute an array of N output values. input must have N valid entries. | |
unsigned | ntaps_ff () const |
unsigned | ntaps_fb () const |
void | set_taps (const std::vector< tap_type > &fftaps, const std::vector< tap_type > &fbtaps) throw (std::invalid_argument) |
install new taps. |
Protected Attributes | |
std::vector< tap_type > | d_fftaps |
std::vector< tap_type > | d_fbtaps |
int | d_latest_n |
int | d_latest_m |
std::vector< tap_type > | d_prev_output |
std::vector< i_type > | d_prev_input |
base class template for Infinite Impulse Response filter (IIR)
|
inline |
Construct an IIR with the given taps.
This filter uses the Direct Form I implementation, where fftaps
contains the feed-forward taps, and fbtaps
the feedback ones.
fftaps
and fbtaps
must have equal numbers of taps
The input and output satisfy a difference equation of the form
with the corresponding rational system function
Note that some texts define the system function with a + in the denominator. If you're using that convention, you'll need to negate the feedback taps.
|
inline |
|
inline |
o_type gr::filter::kernel::iir_filter< i_type, o_type, tap_type >::filter | ( | const i_type | input | ) |
compute a single output value.
void gr::filter::kernel::iir_filter< i_type, o_type, tap_type >::filter_n | ( | o_type | output[], |
const i_type | input[], | ||
long | n | ||
) |
compute an array of N output values. input
must have N valid entries.
|
inline |
|
inline |
|
inline |
install new taps.
Referenced by gr::filter::kernel::iir_filter< float, float, double >::iir_filter().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |