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 75 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
complex_t dc_gain
complex_t fc_gain
complex_t hf_gain
double gain
filterrep_tcplane
int IsFIR
int nxc
double xc [MAXPZ+1]
int nyc
double yc [MAXPZ+1]
double xv [MAXPZ+1]
double yv [MAXPZ+1]
int ns
double * wfbuffer


Field Documentation

char filter_t::name[80]

The filter's name

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

Referenced by calculate_filter_coefficients(), create_filter(), create_resonator_representation(), create_splane_representation(), normalise_filter(), and zplane_transform().

int filter_t::order

filter order

Definition at line 79 of file bpm_dsp.h.

Referenced by create_filter(), and create_splane_representation().

double filter_t::fs

sampling frequency

Definition at line 81 of file bpm_dsp.h.

Referenced by create_filter().

double filter_t::f1

first frequency ( left edge for bandpass/stop )

Definition at line 82 of file bpm_dsp.h.

Referenced by create_filter().

double filter_t::f2

right edge for bandpass/stop ( undef for low/highpass )

Definition at line 83 of file bpm_dsp.h.

Referenced by create_filter().

double filter_t::alpha1

rescaled f1

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

Referenced by calculate_filter_coefficients(), and create_filter().

double filter_t::w_alpha1

warped alpha1

Definition at line 88 of file bpm_dsp.h.

Referenced by create_filter(), and normalise_filter().

double filter_t::w_alpha2

warped alpha2

Definition at line 89 of file bpm_dsp.h.

Referenced by create_filter(), and normalise_filter().

double filter_t::cheb_ripple

ripple for chebyshev filters

Definition at line 91 of file bpm_dsp.h.

Referenced by create_filter(), and create_splane_representation().

double filter_t::Q

Q factor for resonators

Definition at line 92 of file bpm_dsp.h.

Referenced by create_filter(), and create_resonator_representation().

complex_t filter_t::dc_gain

Complex DC gain of the filter

Definition at line 94 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 95 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 96 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), and print_filter().

double filter_t::gain

Actual Filter gain

Definition at line 97 of file bpm_dsp.h.

Referenced by apply_filter(), and calculate_filter_coefficients().

filterrep_t* filter_t::cplane

pointer to complex filter representation, poles and zeros

Definition at line 99 of file bpm_dsp.h.

Referenced by calculate_filter_coefficients(), create_filter(), delete_filter(), and print_filter().

int filter_t::IsFIR

filter is FIR

Definition at line 101 of file bpm_dsp.h.

Referenced by apply_filter(), and create_filter().

int filter_t::nxc

number of x coefficients

Definition at line 102 of file bpm_dsp.h.

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

double filter_t::xc[MAXPZ+1]

pointer to array of x coefficients

Definition at line 103 of file bpm_dsp.h.

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

int filter_t::nyc

number of y coefficients (for IIR filters)

Definition at line 104 of file bpm_dsp.h.

Referenced by apply_filter(), and calculate_filter_coefficients().

double filter_t::yc[MAXPZ+1]

pointer to array of y coefficients

Definition at line 105 of file bpm_dsp.h.

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

double filter_t::xv[MAXPZ+1]

filter x buffer, used in apply_filter

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

Referenced by apply_filter().

int filter_t::ns

number of samples of waveforms to be filtered

Definition at line 110 of file bpm_dsp.h.

Referenced by apply_filter(), create_filter(), filter_impulse_response(), and filter_step_response().

double* filter_t::wfbuffer

waveform buffer for filter computations, allocated once !

Definition at line 111 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 Fri Nov 9 21:17:24 2007 for libbpm by  doxygen 1.5.1