filter_t Struct Reference
[Digital Signal Processing Routines]

#include <bpm_dsp.h>

Collaboration diagram for filter_t:

Collaboration graph
[legend]

Detailed Description

The filter structure.

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_tcplane
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

Field Documentation

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

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().

rescaled f1

Definition at line 447 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), create_filter(), and create_resonator_representation().

rescaled f2

Definition at line 448 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), and create_filter().

warped alpha1

Definition at line 450 of file bpm_dsp.h.

Referenced by create_filter(), and normalise_filter().

warped alpha2

Definition at line 451 of file bpm_dsp.h.

Referenced by create_filter(), and normalise_filter().

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().

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().

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().

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().

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().

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().

number of anti-causal y coefficients (for IIR filters)

Definition at line 473 of file bpm_dsp.h.

double filter_t::yc_ac[MAXPZ+1]

pointer to array of anti-causal y coefficients

Definition at line 474 of file bpm_dsp.h.

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().

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().

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().


The documentation for this struct was generated from the following file:

Generated on Wed Jun 25 17:32:55 2008 for libbpm by  doxygen 1.5.6