#include <bpm_dsp.h>
Definition at line 437 of file bpm_dsp.h.
Data Fields | |
char | name [80] |
unsigned int | options |
int | order |
double | fs |
double | f1 |
double | f2 |
double | alpha1 |
double | alpha2 |
double | w_alpha1 |
double | w_alpha2 |
double | cheb_ripple |
double | Q |
double | gauss_cutoff |
complex_t | dc_gain |
complex_t | fc_gain |
complex_t | hf_gain |
double | gain |
filterrep_t * | cplane |
int | nxc |
double | xc [MAXPZ+1] |
int | nxc_ac |
double | xc_ac [MAXPZ+1] |
int | nyc |
double | yc [MAXPZ+1] |
int | nyc_ac |
double | yc_ac [MAXPZ+1] |
double | xv [MAXPZ+1] |
double | xv_ac [MAXPZ+1] |
double | yv [MAXPZ+1] |
double | yv_ac [MAXPZ+1] |
int | ns |
double * | wfbuffer |
char filter_t::name[80] |
The filter's name
Definition at line 438 of file bpm_dsp.h.
Referenced by create_filter(), and print_filter().
unsigned int filter_t::options |
type and option bits for filter
Definition at line 440 of file bpm_dsp.h.
Referenced by apply_filter(), calculate_filter_coefficients(), create_filter(), create_resonator_representation(), create_splane_representation(), gaussian_filter_coeffs(), normalise_filter(), print_filter(), and zplane_transform().
int filter_t::order |
filter order
Definition at line 441 of file bpm_dsp.h.
Referenced by create_filter(), and create_splane_representation().
double filter_t::fs |
sampling frequency
Definition at line 443 of file bpm_dsp.h.
Referenced by create_filter(), and gaussian_filter_coeffs().
double filter_t::f1 |
first frequency ( left edge for bandpass/stop )
Definition at line 444 of file bpm_dsp.h.
Referenced by create_filter(), and gaussian_filter_coeffs().
double filter_t::f2 |
right edge for bandpass/stop ( undef for low/highpass )
Definition at line 445 of file bpm_dsp.h.
Referenced by create_filter().
double filter_t::alpha1 |
rescaled f1
Definition at line 447 of file bpm_dsp.h.
Referenced by calculate_filter_coefficients(), create_filter(), and create_resonator_representation().
double filter_t::alpha2 |
rescaled f2
Definition at line 448 of file bpm_dsp.h.
Referenced by calculate_filter_coefficients(), and create_filter().
double filter_t::w_alpha1 |
warped alpha1
Definition at line 450 of file bpm_dsp.h.
Referenced by create_filter(), and normalise_filter().
double filter_t::w_alpha2 |
warped alpha2
Definition at line 451 of file bpm_dsp.h.
Referenced by create_filter(), and normalise_filter().
double filter_t::cheb_ripple |
ripple for chebyshev filters
Definition at line 453 of file bpm_dsp.h.
Referenced by create_filter(), and create_splane_representation().
double filter_t::Q |
Q factor for resonators
Definition at line 454 of file bpm_dsp.h.
Referenced by create_filter(), and create_resonator_representation().
double filter_t::gauss_cutoff |
gaussian filter cutoff parameter
Definition at line 455 of file bpm_dsp.h.
Referenced by create_filter(), and gaussian_filter_coeffs().
Complex DC gain of the filter
Definition at line 457 of file bpm_dsp.h.
Referenced by calculate_filter_coefficients(), and print_filter().
Complex Center frequency gain of filter
Definition at line 458 of file bpm_dsp.h.
Referenced by calculate_filter_coefficients(), and print_filter().
Complex High frequency (fNy) gain of filter
Definition at line 459 of file bpm_dsp.h.
Referenced by calculate_filter_coefficients(), and print_filter().
double filter_t::gain |
Actual Filter gain
Definition at line 460 of file bpm_dsp.h.
Referenced by apply_filter(), calculate_filter_coefficients(), gaussian_filter_coeffs(), and print_filter().
pointer to complex filter representation, poles and zeros
Definition at line 462 of file bpm_dsp.h.
Referenced by calculate_filter_coefficients(), create_filter(), delete_filter(), and print_filter().
int filter_t::nxc |
number of x coefficients
Definition at line 464 of file bpm_dsp.h.
Referenced by apply_filter(), calculate_filter_coefficients(), gaussian_filter_coeffs(), and print_filter().
double filter_t::xc[MAXPZ+1] |
pointer to array of x coefficients
Definition at line 465 of file bpm_dsp.h.
Referenced by apply_filter(), calculate_filter_coefficients(), gaussian_filter_coeffs(), and print_filter().
int filter_t::nxc_ac |
number of anti-causal x coefficients
Definition at line 467 of file bpm_dsp.h.
Referenced by apply_filter(), gaussian_filter_coeffs(), and print_filter().
double filter_t::xc_ac[MAXPZ+1] |
pointer to array of anti-causal x coefficients
Definition at line 468 of file bpm_dsp.h.
Referenced by apply_filter(), gaussian_filter_coeffs(), and print_filter().
int filter_t::nyc |
number of y coefficients (for IIR filters)
Definition at line 470 of file bpm_dsp.h.
Referenced by apply_filter(), calculate_filter_coefficients(), and print_filter().
double filter_t::yc[MAXPZ+1] |
pointer to array of y coefficients
Definition at line 471 of file bpm_dsp.h.
Referenced by apply_filter(), calculate_filter_coefficients(), create_filter(), and print_filter().
int filter_t::nyc_ac |
double filter_t::yc_ac[MAXPZ+1] |
double filter_t::xv[MAXPZ+1] |
filter x buffer, used in apply_filter
Definition at line 476 of file bpm_dsp.h.
Referenced by apply_filter().
double filter_t::xv_ac[MAXPZ+1] |
filter x buffer, used in apply_filter
Definition at line 477 of file bpm_dsp.h.
Referenced by apply_filter().
double filter_t::yv[MAXPZ+1] |
filter y buffer, used in apply_filter
Definition at line 479 of file bpm_dsp.h.
Referenced by apply_filter().
double filter_t::yv_ac[MAXPZ+1] |
filter y buffer, used in apply_filter
Definition at line 480 of file bpm_dsp.h.
Referenced by apply_filter().
int filter_t::ns |
number of samples of waveforms to be filtered
Definition at line 482 of file bpm_dsp.h.
Referenced by apply_filter(), create_filter(), filter_impulse_response(), filter_step_response(), and gaussian_filter_coeffs().
double* filter_t::wfbuffer |
waveform buffer for filter computations, allocated once !
Definition at line 483 of file bpm_dsp.h.
Referenced by apply_filter(), create_filter(), and delete_filter().