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 439 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 440 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 442 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 443 of file bpm_dsp.h.

Referenced by create_filter(), and create_splane_representation().

double filter_t::fs

sampling frequency

Definition at line 445 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 446 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 447 of file bpm_dsp.h.

Referenced by create_filter().

double filter_t::alpha1

rescaled f1

Definition at line 449 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 450 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), and create_filter().

double filter_t::w_alpha1

warped alpha1

Definition at line 452 of file bpm_dsp.h.

Referenced by create_filter(), and normalise_filter().

double filter_t::w_alpha2

warped alpha2

Definition at line 453 of file bpm_dsp.h.

Referenced by create_filter(), and normalise_filter().

double filter_t::cheb_ripple

ripple for chebyshev filters

Definition at line 455 of file bpm_dsp.h.

Referenced by create_filter(), and create_splane_representation().

double filter_t::Q

Q factor for resonators

Definition at line 456 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 457 of file bpm_dsp.h.

Referenced by create_filter(), and gaussian_filter_coeffs().

complex_t filter_t::dc_gain

Complex DC gain of the filter

Definition at line 459 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), and print_filter().

complex_t filter_t::fc_gain

Complex Center frequency gain of filter

Definition at line 460 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), and print_filter().

complex_t filter_t::hf_gain

Complex High frequency (fNy) gain of filter

Definition at line 461 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), and print_filter().

double filter_t::gain

Actual Filter gain

Definition at line 462 of file bpm_dsp.h.

Referenced by apply_filter(), calculate_filter_coefficients(), gaussian_filter_coeffs(), and print_filter().

filterrep_t* filter_t::cplane

pointer to complex filter representation, poles and zeros

Definition at line 464 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 466 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 467 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 469 of file bpm_dsp.h.

Referenced by apply_filter(), and gaussian_filter_coeffs().

double filter_t::xc_ac[MAXPZ+1]

pointer to array of anti-causal x coefficients

Definition at line 470 of file bpm_dsp.h.

Referenced by apply_filter(), and gaussian_filter_coeffs().

int filter_t::nyc

number of y coefficients (for IIR filters)

Definition at line 472 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients().

double filter_t::yc[MAXPZ+1]

pointer to array of y coefficients

Definition at line 473 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), and create_filter().

int filter_t::nyc_ac

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

Definition at line 475 of file bpm_dsp.h.

double filter_t::yc_ac[MAXPZ+1]

pointer to array of anti-causal y coefficients

Definition at line 476 of file bpm_dsp.h.

double filter_t::xv[MAXPZ+1]

filter x buffer, used in apply_filter

Definition at line 478 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 479 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 481 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 482 of file bpm_dsp.h.

Referenced by apply_filter().

int filter_t::ns

number of samples of waveforms to be filtered

Definition at line 484 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 485 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 Thu Jan 10 10:18:36 2008 for libbpm by  doxygen 1.5.1