Frequency-Selective Filters
In questa pagina 4
Filtering
For a convolutional LTI system the input-output relation is a convolution, . Taking Fourier transforms,
By choosing we can modify the frequency components of the input as we desire: this is the key idea defining filters.
Ideal low-pass filter
equal to on the passband and elsewhere (stopped band).
Ideal high-pass filter
Sketch: the constant minus the rectangle gives for and for .
The low-pass filter is studied also to understand high-pass filters, because of this relation: all other filters can be derived from a low-pass one, which simplifies the discussion.
First-order implementation of low-pass and high-pass filters
Low-pass. It is realized by an RC circuit: input voltage in series with the resistor , the capacitor connected across the output, taken on the capacitor.
The modulus is at , equals at and decays for large ; compared with the ideal rectangle, the transition is smooth. The notes mark the inflection point of the modulus at .
High-pass. It is realized by an RC circuit with the capacitor in series with the source and the output taken on the resistor. is at , tends to at high frequency, and again has its inflection point at .
Theoretical design of (low-pass) filters
Low-pass filters are frequency-selective filters. The following three criteria should be adopted:
- The signal components over the passband must be preserved (non-distortion conditions).
- We want a precise cut-off at and .
- Strong attenuation over the stopped band.
Distortion
Distortion is "changing the shape". The shape-invariant transformations are:
- anticipation / delay are not distortion;
- amplification / attenuation are not distortion.
So a filter without distortion has the form
with an amplification and a delay (sketch: the output is the same bump, higher by and shifted to the right by ).
Imposing means imposing , and therefore
Heaviside conditions (non-distortion over the passband)
- HC1: for all .
- HC2: for all , i.e. a linearly decreasing (or increasing, if ) phase.
Why HC1. Preserving the relative amplitude among different is important. Example (with ): through a filter in which HC1 is not well satisfied gives ; the waveform of is visibly different from that of .
Example where HC2 is not satisfied. Let (time reversal). Recall Hermitian symmetry: . Then
HC1 is fulfilled ( for all ) but the phase is , which is not linear in : HC2 is extremely hard to satisfy and here one experiences the worst distortion. Not a surprise: a signal and its mirror image look very different.
Qualitative plots of the Heaviside conditions: is flat at the level on (and may decay outside); is a straight line of slope through the origin on .
Adding requirements 2 and 3: the ideal low-pass filter
The impulse response is a sinc with peak at and first zeros at .
It is not applicable to real systems because:
- has unbounded support (which means slow filtering dynamics);
- is not BIBO-stable, because ;
- is not causal: for .
Practical design of (low-pass) filters
A realistic magnitude response is specified by:
- : end of the passband ( = passband); : beginning of the stopband ( = stopband); ideally ;
- transition band: ;
- ripple in the passband : the modulus stays between and for ;
- ripple in the stopband : the modulus stays below for .
The parameters can be regulated but they end up being in a trade-off every time.
This design can be implemented in practice through analog circuits. Nowadays, however, we are more interested in discrete-time filters to use on digital devices, see FIR and IIR FiltersDiscrete-time (digital) filters are described by ARMA difference equations; FIR filters have finite impulse response (moving average, no auto-regression), IIR filters have auto-regression and a rational frequency response; worked examples of a first-order IIR low-pass/high-pass filter and a moving-average FIR low-pass filter.FIR and IIR Filters →.
Versione ripasso
- Filtering: . Ideal LP: ; ideal HP: .
- First-order LP: with (output on the capacitor); HP: (output on the resistor). Modulus inflection point at .
- Design criteria for LP: (1) non-distortion in the passband, (2) precise cut-off, (3) strong stopband attenuation.
- Distortion-free: , i.e. and . Delay and amplification are not distortion.
- Heaviside conditions on the passband: HC1 ; HC2 (linear phase). Breaking HC1 changes relative amplitudes (); time reversal satisfies HC1 but has phase , the worst distortion.
- : unbounded support, not BIBO-stable (), not causal, so not realizable.
- Practical filter: , , transition band , ripples , in ; all in trade-off.
- Typical mistakes: treating a delay as distortion; forgetting that HC2 is a condition on the phase, not on the modulus; believing the ideal LP can be built (it is non-causal and unstable).