GNU Radio 3.5.3.2 C++ API
|
class template for single pole IIR filter More...
#include <gr_single_pole_iir.h>
Public Member Functions | |
gr_single_pole_iir (tap_type alpha=1.0) | |
construct new single pole IIR with given alpha | |
o_type | filter (const i_type input) |
compute a single output value. | |
void | filterN (o_type output[], const i_type input[], unsigned long n) |
compute an array of N output values. input must have n valid entries. | |
void | set_taps (tap_type alpha) |
install alpha as the current taps. | |
void | reset () |
reset state to zero | |
o_type | prev_output () const |
Protected Attributes | |
tap_type | d_alpha |
tap_type | d_one_minus_alpha |
o_type | d_prev_output |
class template for single pole IIR filter
gr_single_pole_iir< o_type, i_type, tap_type >::gr_single_pole_iir | ( | tap_type | alpha = 1.0 | ) | [inline] |
construct new single pole IIR with given alpha
computes y(i) = (1-alpha) * y(i-1) + alpha * x(i)
o_type gr_single_pole_iir< o_type, i_type, tap_type >::filter | ( | const i_type | input | ) |
compute a single output value.
Referenced by gr_single_pole_iir< gr_complex, i_type, double >::filterN().
void gr_single_pole_iir< o_type, i_type, tap_type >::filterN | ( | o_type | output[], |
const i_type | input[], | ||
unsigned long | n | ||
) |
compute an array of N output values. input
must have n valid entries.
o_type gr_single_pole_iir< o_type, i_type, tap_type >::prev_output | ( | ) | const [inline] |
void gr_single_pole_iir< o_type, i_type, tap_type >::reset | ( | ) | [inline] |
reset state to zero
void gr_single_pole_iir< o_type, i_type, tap_type >::set_taps | ( | tap_type | alpha | ) | [inline] |
install alpha
as the current taps.
Referenced by gr_single_pole_iir< gr_complex, i_type, double >::gr_single_pole_iir(), and gr_single_pole_iir< double, double, double >::gr_single_pole_iir().
tap_type gr_single_pole_iir< o_type, i_type, tap_type >::d_alpha [protected] |
tap_type gr_single_pole_iir< o_type, i_type, tap_type >::d_one_minus_alpha [protected] |
o_type gr_single_pole_iir< o_type, i_type, tap_type >::d_prev_output [protected] |
Referenced by gr_single_pole_iir< gr_complex, i_type, double >::filter(), gr_single_pole_iir< gr_complex, i_type, double >::gr_single_pole_iir(), gr_single_pole_iir< double, double, double >::gr_single_pole_iir(), gr_single_pole_iir< gr_complex, i_type, double >::prev_output(), gr_single_pole_iir< double, double, double >::prev_output(), gr_single_pole_iir< gr_complex, i_type, double >::reset(), and gr_single_pole_iir< double, double, double >::reset().