|   | N-1 |   | 
| Y(n) = | E | h(k)*x(n-k) | 
|   | k=0 |   | 
The design of the actual filter can be broken down into five basic steps.
Windowing Functions
| WINDOW FUNCTION | TRANSITION WIDTH (NORMALIZED) | STOPBAND ATTENUATION IN (DB) | WINDOW FUNCTION W(N), |N|<=(N-1)/2 | 
|---|---|---|---|
| Rectangular | .9/N | 21 | 1 | 
| Hanning | 3.1/N | 44 | .5+.5 cos((2*(PI)*n)/N) | 
| Hamming | 3.3/N | 53 | .54+.46 cos((2*(pi)*n)/N) | 
| Blackman | 5.5/N | 74 | .42+.5 cos((2*(pi)*n)/(N-1))+0.08 cos((4*(pi)*n)/(N-1)) | 
Ideal Impulse Response Functions
| Filter Type | Hd(n),n!=0 | Hd(0) | 
|---|---|---|
| Lowpass | 2*fc*(sin (n*wc)/n*wc) | 2*fc | 
| Highpass | -2*fc*(sin (n*wc)/n*wc) | 1-2*fc | 
| Bandpass | 2*f2*(sin (n*w2)/n*w2)-2*f1*(sin (n*w1)/n*w1) | 2*(f2-f1) | 
| Bandstop | 2*f1*(sin (n*w1)/n*w1)-2*f2*(sin (n*w2)/n*w2) | 1-2*(f2-f1) |