Aliasing and Anti-Aliasing Filters
In questa pagina 3
Aliasing
Aliasing is an issue that arises when we violate the conditions of the sampling theorem (see Sampling and the Sampling TheoremSampling multiplies a continuous-time signal by a pulse train, which replicates its spectrum every omega_s; if the signal is band-limited with maximum angular frequency omega_M and omega_s exceeds 2 omega_M, an ideal low-pass filter recovers it exactly (Shannon theorem and sinc interpolation formula).Sampling and the Sampling Theorem →), such as the band-limited (BL) assumption or the assumption on the Nyquist frequency.
Useful recalls: and . Notice the duality: narrow in time wide over frequency.
We have seen that for , as . Hence in practice we can neglect the tails of at very high frequency (we can filter out these high frequencies): is approximated by a band-limited signal.
If the Nyquist condition is violated, taking , the replicas of overlap. Summing the replicas, the ideal low-pass filter then preserves unwanted frequencies coming from the neighbouring replicas: this is aliasing.
Illustrative example
: , Hz, . Its Fourier transform is : two impulses of weight at , so .
Suppose:
- , e.g. ;
- , e.g. or . This violates the sampling theorem and produces aliasing: literally, we no longer distinguish or reconstruct the original signal we were given.
Case 1, . The replicas of the impulses sit at ; the nearest ones are at and (and their mirror images). An ideal low-pass filter with a passband that contains but not preserves the original impulses and cuts out the rest: is recovered.
Case 2, . The replicas of the impulses at fall at and , inside the passband needed to keep . With an ideal low-pass filter we cannot reject the replicas: it is impossible to retain just the original content. There are two extra impulses , which after give an extra :
so we cannot recover the original signal.
Case . The replica impulses at coincide with the original ones and add up, so gives .
Observation. is not sufficient to prevent aliasing in general, due to the potential presence of impulsive terms at the edge of the band. (This is why the sampling theorem has a strict inequality.)
Anti-aliasing filters
In practice the Fourier transform of has a bump around the origin and tails that never vanish exactly. The sampling period is the design parameter, with . By the sampling theorem we can reconstruct exactly the original signal if . The parts of beyond (the tails, hatched in the notes' sketch) will always overlap in practice, leading to aliasing.
The approach of anti-aliasing filters is pre-filtering the original signal: since we already know that must be bounded, we remove the high frequencies before sampling. For this task we use low-pass filters:
We are going to lose some information, sure, but
will not exhibit overlaps. guarantees no overlap if , and is the best choice, as it saves as much content as possible.
Important practical remark: analog-to-digital converters with high are expensive, which is why cannot simply be raised.
The sampling system must therefore be redesigned. The earlier chain gives if is not band-limited (the assumptions were: band-limited and ). The new chain is
Exercises on sampling and aliasing
Convention in the exercises: the Fourier transform variable is (in Hz), so that there is no factor in the convolution theorem, and is the unit triangle supported on .
Exercise 1
Given with Fourier transform (a triangle of height supported on Hz), let sampled using Hz.
- Is it necessary to use an anti-aliasing filter before sampling? If yes, design .
- Compute the energy of the reconstruction error where is the output of the chain .
- Is it possible to obtain the same reconstruction error using a lower ?
Solution.
We need to check whether satisfies the sampling theorem, i.e. with the maximum frequency in . Work in the frequency domain with the convolution theorem: By the double-angle formula , Sketch: a central triangle of height on and two triangles of height centred at and supported on and . Thus Hz and Hz: the sampling theorem conditions are violated, so we need . Given Hz we can reconstruct if Hz, so the cut-off is Hz (best possible choice): After the filter only the central triangle survives: , supported on , so the signal entering the sampler satisfies the sampling theorem and the reconstruction is perfect: for all .
(the two outer triangles). By Plancherel's theorem, (the two triangles do not overlap), and shifting by :
Yes: the sampling theorem only needs to exceed the bandwidth Hz of the central triangle, so every Hz is fine; we can lower down to Hz (i.e. down to Hz) with no impact on the error. Using with Hz, we get the same reconstruction error.
Exercise 2
Consider , .
- Is it possible to sample the signal and reconstruct it without error?
- Find the minimum such that the reconstruction error has energy less than .
Solution.
- No, because is not band-limited (it is positive for all , a symmetric two-sided exponential with value at the origin). To reconstruct perfectly we would need finite, and cannot be satisfied.
- Design a sampling system that satisfies the requirement: , with cutting at (the tails outside are eliminated by ). The error is the part of outside this band: The requirement is Hz.
Versione ripasso
- Aliasing: overlap of spectral replicas when the sampling theorem hypotheses fail (not band-limited, or ): the original signal can no longer be distinguished or reconstructed.
- Example , : is fine (nearest replica at ); adds impulses at , giving ; gives (impulses add up), so is not enough.
- Real signals have tails ( as for ), so aliasing is unavoidable without pre-filtering.
- Anti-aliasing filter: pre-filter with , ; best choice (keeps the most content). Chain: . High- converters are expensive.
- Exercise 1: , so ; error terms, energy (Plancherel); any Hz gives the same error.
- Exercise 2: is not band-limited; with cut-off the error energy is Hz.
- Typical mistakes: choosing without checking the highest frequency of the modulated signal (here Hz, not Hz); filtering after sampling instead of before; forgetting that energy of the error is computed in frequency with Plancherel; forgetting the factor from the two symmetric tails.
Teoria collegata
- Course Overview and Laboratory Setup
- Digital Control Systems
- Digital Representation of Audio and Image Signals
- Data Acquisition Systems
- Lab 4 - RC Filters
- Lab 5 - ADC with Matlab
- Measurement Systems - Architecture and Operating Principles
- Signal Acquisition - Sampling, Conditioning and Filtering
- Sampling and the Sampling Theorem