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