/***************************************************************** * fir.c - C function for performing FIR filtering *****************************************************************/ float fir(x, w, ntap) float *x, *w; // x is signal vector, w is coefficient vector int ntap; // order of filter { float yn = 0.0; // output of FIR filter, y(n) int i; // loop index for (i=0; i