Digital Filters
FIR and IIR filters process sampled signals in software or hardware.
Advanced
- FIR (finite impulse response): . Always stable, can have exactly linear phase; needs more taps.
- IIR (infinite impulse response): uses feedback from past outputs. Very efficient, but can be unstable and has non-linear phase.
The simplest useful filter is the moving average (FIR) or the exponential moving average (IIR), widely used to smooth sensor readings:
filtered = filtered + alpha * (sample - filtered); // 0 < alpha <= 1
Design tools: scipy.signal, MATLAB, or the bilinear transform from analog prototypes.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.