Docsity

Decimation and Interpolation-Digital Signal Processing-Lab Mannual, Exercises of Digital Signal Processing

Toggle sidebar
bg1
Digital Signal Processing Lab
2
Decimation & Interpolation
1. Objective
1.1 Speech signal decimation with and without Aliasing filter.
1.2 Speech signal interpolation using Ideal Low pass filter.
2. Overview
2.1 Decimation
The process of decreasing the sam pling rate is called decim ation. Decim ation is down
sampling with appropriate filtering. To decim ate (downsample) a signal x[n] by a factor of M
implies collecting every M th value of x[n] to a new signal. This is given by y[n]=x[Mn].
Downsampling by an integer factor M implies retaining one sample and discarding the remaining
M-1 samples and this is done for every M samples.
By downsam pling, the sam pling rate is also reduced so the Shannon-Nyquist sam pling
theorem criterion is maintained. If the sampling theorem is not satisfied then the resulting digital
signal will have aliasing and to ensure that the sampling theorem is satisfied a low-pass f ilter is
used as an anti-aliasing f ilter to reduce the bandwidth of the signal bef ore the signal is
downsampled.
Note that the anti-aliasing filter m ust be a low-pass filter in downsam pling. This is
different from sam pling a continuous signal, where either a low-pass filter or a band-pass filter
may be used. A bandpass signal, i.e. a band-limited signal whose minimum frequency is different
from zero, can be downsam pled avoiding superpos ition of the spectra if we satisf y certain
conditions.
Let M denote the downsampling factor.
1. Filter the signal to ensure that the sam pling theorem is satisfied. This filter should,
theoretically, be the sinc f ilter with f requency cutof f at M
π
. Let the f iltered signal be
denoted g(k).
2. Reduce the data by picking out every M th sam ple: h(k) = g(Mk). Data rate reduction
occurs in this step.
docsity.com
pf3

Partial preview of the text

Download Decimation and Interpolation-Digital Signal Processing-Lab Mannual and more Exercises Digital Signal Processing in PDF only on Docsity!

Decimation & Interpolation

1. Objective

1.1 Speech signal decimation with and without Aliasing filter. 1.2 Speech signal interpolation using Ideal Low pass filter.

2. Overview

2.1 Decimation The process of decreasing the sam pling rate is called decim ation. Decim ation is down sampling with appropriate filtering. To decim ate(downsample) a signal x[n] by a factor of M implies collecting every M th^ value of x[n] to a new signal. This is given by y[n]=x[Mn]. Downsampling by an integer factor M implies retaining one sample and discarding the remaining M-1 samples and this is done for every M samples. By downsam pling, the sam pling rate is also reduced so the Shannon-Nyquist sam pling theorem criterion is maintained. If the sampling theorem is not satisfied then the resulting digital signal will have aliasing and to ensure that the sampling theorem is satisf ied a low-pass f ilter is used as an anti-aliasing f ilter to reduce thebandwidth of the signal bef ore the signal is downsampled. Note that the anti-aliasing filter m ust bea low-pass filter in downsam pling. This is different from sampling a continuous signal, where either a low-pass filter or a band-pass filter may be used. A bandpass signal, i.e. a band-limited signal whose minimum frequency is different from zero, can be downsam pled avoiding superposition of the spectra if we satisf y certain conditions.

Let M denote the downsampling factor.

  1. Filter the signal to ensure that the sam ng theorempli is satisfied. This filter should, theoretically, be the sinc f ilter with f requency cutof f at

M

π . Let the f iltered signal be

denoted g ( k ).

  1. Reduce the data by picking out every Mth^ sam ple: h(k) = g(Mk). Data rate reduction occurs in this step.

2.2 Interpolation The process of increasing the sam pling rateis called interpolation. Interpolation is upsampling followed by appropriate filtering. y[n] obtained by interpolating x[n], is generally represented as:

y n [ ] x [^ n ]

L

The simplest method to interpolate by a factor of L is to add L-1 zeros in between the samples, m ultiply the am plitude by L and f ilterthe generated signal, with a so-called anti- imaging low pass filter at the high sampling frequency.

The upsam pled signal satisfies the Nyquist-Shannon sam pling theorem if the original signal does. Unlike in downsam pling, which usesa low-pass filter as an anti-aliasing filter, upsampling uses an interpolation filter, which also is a low-pass filter.

Let L denote the upsampling factor.

  1. Add L-1 zeros between each sample in f ( k ). Or, equivalently define

if is an integer

0 otherwise

f^ k^ k

g x L L

= ⎪^ ⎜^ ⎟

  1. Filter with a low-pass filter, which, theoretically, should be the sinc filter with

frequency cut off at

L

π (^) .The second step calls for the use of a perfect low-pass filter,

which is not implementable. When choosing a realizable low-pass filter this will have to be considered and it will have aliasing effects.