SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
fir_d.c File Reference

FIR filter implementation in direct form. More...

Functions

void spr_fir_d (int n, float x[], float y[], float b[], int Lb)
 

Detailed Description

FIR filter implementation in direct form.

Author
Dirk Van Compernolle
Date
12 Sep 1991

fir_d( ) is a direct implementation of an FIR filter

        Y(z) = B(z) X(z) = (b_0+b_1 z^-1+... b_Lb z^-Lb) X(z)
        y(j) = Sum b_i x(j-i)
                b_i: i=0:Lb

Parameter remarks:

n
number of samples of output that are computed in one call to fir_d().
b[]
array with indices 0:Lb according to the above formula.
x[]
must be defined with at least Lb points into the past ! Standard initialization would be to set Lb zeros.