SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
Chapter Three
Discrete - Time Convolutions
Lecture #7
Rediet Million
AAiT, School Of Electrical and Computer Engineering
rediet.million@aait.edu.et
April,2018
(Rediet Million) DSP-Lecture #7 April,2018 1 / 18
Introduction
In this chapter we look at methods on how the discrete-time samples,
once obtained, are processed by a special class of linear time-invariant
discrete-time systems to produce an output.
Major practical methods considered are block-processing and
sample-processing methods.
Block processing method deals with finite-duration blocks of data
at a time.Typical applications include
-FIR filtering of finite-duration signals by convolution
-DFT/FFT spectral computations
-Speech analysis and synthesis and image processing
Sample processing methods are primarily used in real -time
applications such as:
-Real-time filtering,
-Digital audio effects processing,
-Digital control systems,
-Adaptive signal processing
(Rediet Million) DSP-Lecture #7 April,2018 2 / 18
Introduction
Various equivalent forms of the convolution operation will also be
presented. These equivalent forms of convolution are:
Direct form:Leads to block diagram realization and sample
processing algorithm.
LTI form : incorporates linearity and time-invariance properties.
Matrix form: represents compact vectorial representation of the
filtering operation.
Flip-and-slide form:Shows clearly input-on and input-off
transients and steady-state behavior.
Overlap-add block convolution: used whenever the input is
extremely long or infinite in duration.
(Rediet Million) DSP-Lecture #7 April,2018 3 / 18
3.1 Block processing methods
The main feature of block processing methods is that data is
collected and processed in blocks at a time.
Consider a finite set of samples of length L representing a finite time
record of the input signal x(n).
For a sampling interval of T the duration TR of the data record,
in seconds, will be
TR = (L − 1)T
TR =
L
fs
or L = TR = fs
Thus, the signal block or vector of length-L is : x = [x0, x1, x2, .., xL−1]
(Rediet Million) DSP-Lecture #7 April,2018 4 / 18
Block processing methods
Direct form convolution
Consider a causal FIR filter order M with impulse response
h = {h0, h1, h2, ..., hM}
- The length of the impulse response is Lh = M + 1
The response of the order - M FIR filter to a length-Lx input x(n) i.e
x = {x0, x1, x2, ..., xLx −1} is obtained,using the direct form convolution as
y(n) =
m
h(m)x(n − m)
-Range of h(m) is 0 ≤ m ≤ M.....................(1)
-Range of x(n − m) is 0 ≤ n − m ≤ Lx − 1........(2)
To determine the range of values of the output index ’n’ we write (2) in
the form of m ≤ n ≤ Lx − 1 + m
(Rediet Million) DSP-Lecture #7 April,2018 5 / 18
Block processing methods
Direct form convolution
and use (1) to expand the limits to 0 ≤ m ≤ n ≤ Lx − 1 + m ≤ Lx − 1 + M
⇒The limits for the output index is
0 ≤ n ≤ Lx − 1 + M..........(3)
- Thus, Ly = Lx + M and y = {y0, y1, y2, ..., yLx −1+M}
For any values of the output index ’n’ in the range (3),we must
determine the summation range over ’m’ in the convolution equation
- Changing the sign of (2) we obtain −(Lx − 1) ≤ m − n ≤ 0 and adding
’n’ to all sides
n − Lx + 1 ≤ m ≤ n..........(4)
- ’m’ must satisfy equation (1) and (4) i.e
max(0, n − Lx + 1) ≤ m ≤ min(n, M)
In the case of an order M FIR filter and a length Lx input ,the direct
form of convolution is given as :
y(n) =
min(n,M)
m=max(0,n−Lx +1)
h(m)x(n − m)
(Rediet Million) DSP-Lecture #7 April,2018 6 / 18
Block processing methods
Convolution table
A convenient way of expressing the direct form convolution is as
follows convolution table form :
y(n) =
n=i+j
h(i)x(j)
Each output yn is the sum of all possible products hi xj for which
i + j = m.This leads directly to the convolution table.
- In the ij-plane, the condition i + j = n represents the nth
anti-diagonal.These anti-diagonal entries are summed to form yn.
(Rediet Million) DSP-Lecture #7 April,2018 7 / 18
Block processing methods
Convolution table
Example :
Compute the convolution of h(n) and x(n), where
(Rediet Million) DSP-Lecture #7 April,2018 8 / 18
Block processing methods
LTI form convolution
This type of convolution uses linearity and time-invariance properties
of the filter to determine the output sequence.
For an input sequence x = [x0, x1, x2, x3, x4] and impulse response
h(n), we may rewrite the LTI form of convolution as:
y(n) =
min(n,Lx −1)
m=max(0,n−M)
x(m)h(n − m)
A convolution table type of operation can be formed for the LTI form
of convolution where the output values, yn, may be obtained by
summing entries column-wise, with h arranged along the row and x
arranged along the column.
(Rediet Million) DSP-Lecture #7 April,2018 9 / 18
Block processing methods
Matrix form of convolution
The convolution equation may also be written in a matrix form as:
y = Hx
where H is an (L + M)xL matrix built out of the filter’s impulse
response,h(n).
The columns of H are the successively delayed replicas of the
impulse response vector h(n).
(Rediet Million) DSP-Lecture #7 April,2018 10 / 18
Block processing methods
Matrix form of convolution
Example :
Compute y when
We may also rewrite the convolution equation as :
y = Xh
where X is an (L + M)x(M + 1) matrix
(Rediet Million) DSP-Lecture #7 April,2018 11 / 18
Block processing methods
Flip-and slide form of convolution (Graphical form)
Here h(n) is flipped around or reversed and then slid over the input
data sequence.
At each time instant, the output sample is obtained by computing the
dot product of the filter vector h with M + 1 input samples aligned below
it, as shown below:
(Rediet Million) DSP-Lecture #7 April,2018 12 / 18
Block processing methods
Overlap-add block convolution method
In many applications considering the input as a single block may not
be practical.A practical approach is to divide the long input into
non-overlapping contiguous blocks of practical length, say L samples.
Each block is convolved with the order-M filter h(n) producing the
output blocks appropriately combined together to get the overall output.
y0 = h ∗ x0 y1 = h ∗ x1 y2 = h ∗ x2 y3 = h ∗ x3
Transient and steady-state components
(Rediet Million) DSP-Lecture #7 April,2018 13 / 18
Block processing methods
Transient and steady-state components
For a length-L input and order-M filter,the output sequence can be
divided into three sub-ranges for the range of the output time index n
0 ≤ n ≤ L − 1 + M
Input-on transient: It takes the filter M time units before it is completely
over the nonzero portion of the input sequence.
Steady-state: the filter remains completely over the nonzero portion of
the input data.
Input-off transient: It represent the output after the input is turned off.
(Rediet Million) DSP-Lecture #7 April,2018 14 / 18
Block processing methods
Transient and steady-state components
(Rediet Million) DSP-Lecture #7 April,2018 15 / 18
Block processing methods
Convolution of infinite sequences
Consider the direct form convolution
y(n) =
min(n,M)
m=max(0,n−L+1)
hmxn−m
We can obtain the correct summation limits for the following three
cases:
1. M → ∞, L < ∞, i.e infinite filter length and finite input length.
2. M < ∞, L → ∞, i.e finite filter length and infinite input length.
3. M → ∞, L → ∞, i.e infinite filter length and infinite input length.
In all the above cases, the output index is 0 ≤ n ≤ ∞ and
- When M → ∞ ,the upper limit in the sum becomes min(n, M) = n
- When L → ∞ ,the lower limit in the sum becomes max(0, n − L + 1) = 0
(Rediet Million) DSP-Lecture #7 April,2018 16 / 18
Block processing methods
Convolution of infinite sequences
Thus, we have
(Rediet Million) DSP-Lecture #7 April,2018 17 / 18
Block processing methods
(#1 ) Class exercises & Assignment
1) Compute the convolution ,y = h ∗ x, of the filter and input
a. h = [1, 1, 2, 1] x = [1, 2, 1, 1, 2, 1, 1, 1]
b. h = [1, 0, 0, 1] x = [1, 1, 2, 2, 2, 2, 1, 1]
using the following five methods
i. Direct form ii. Convolution table iii.LTI-form
iv.Matrix form v. The overlap-add methods of block convolution.
2) An IIR filter has h(n) = (0.25)nu(n).Derive a closed form expressions
for the output y(n) when the input is
a. a unit step,x(n) = u(n)
b. a pulse of finite duration samples,x(n) = u(n) − u(n − 8)
c. an alternating step,x(n) = (−2)nu(n)
(Rediet Million) DSP-Lecture #7 April,2018 18 / 18
Chapter three reading assignment
Sample Processing Methods
Transposed realization
(Rediet Million) DSP-Lecture #7 April,2018 19 / 18

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Digital Signal Processing[ECEG-3171]-Ch1_L04
Digital Signal Processing[ECEG-3171]-Ch1_L04Digital Signal Processing[ECEG-3171]-Ch1_L04
Digital Signal Processing[ECEG-3171]-Ch1_L04
 
Design of FIR Filters
Design of FIR FiltersDesign of FIR Filters
Design of FIR Filters
 
Basics of Digital Filters
Basics of Digital FiltersBasics of Digital Filters
Basics of Digital Filters
 
Discrete fourier transform
Discrete fourier transformDiscrete fourier transform
Discrete fourier transform
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter Design
 
Digital communication unit 1
Digital communication unit 1Digital communication unit 1
Digital communication unit 1
 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03
 
digital filters
digital filtersdigital filters
digital filters
 
FILTER BANKS
FILTER BANKSFILTER BANKS
FILTER BANKS
 
Fir filter_utkarsh_kulshrestha
Fir filter_utkarsh_kulshresthaFir filter_utkarsh_kulshrestha
Fir filter_utkarsh_kulshrestha
 
Butterworth filter
Butterworth filterButterworth filter
Butterworth filter
 
Reference for z and inverse z transform
Reference for z and inverse z transformReference for z and inverse z transform
Reference for z and inverse z transform
 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP
 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
 
convolution
convolutionconvolution
convolution
 
Fir filter design using windows
Fir filter design using windowsFir filter design using windows
Fir filter design using windows
 
Z Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsZ Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And Systems
 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal Processing
 
Digital Signal Processing[ECEG-3171]-Ch1_L02
Digital Signal Processing[ECEG-3171]-Ch1_L02Digital Signal Processing[ECEG-3171]-Ch1_L02
Digital Signal Processing[ECEG-3171]-Ch1_L02
 
Filtering an image is to apply a convolution
Filtering an image is to apply a convolutionFiltering an image is to apply a convolution
Filtering an image is to apply a convolution
 

Semelhante a Digital Signal Processing[ECEG-3171]-Ch1_L07

SURF 2012 Final Report(1)
SURF 2012 Final Report(1)SURF 2012 Final Report(1)
SURF 2012 Final Report(1)
Eric Zhang
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptx
HamzaJaved306957
 

Semelhante a Digital Signal Processing[ECEG-3171]-Ch1_L07 (20)

Digital Signal Processing[ECEG-3171]-Ch1_L06
Digital Signal Processing[ECEG-3171]-Ch1_L06Digital Signal Processing[ECEG-3171]-Ch1_L06
Digital Signal Processing[ECEG-3171]-Ch1_L06
 
SURF 2012 Final Report(1)
SURF 2012 Final Report(1)SURF 2012 Final Report(1)
SURF 2012 Final Report(1)
 
Lti system
Lti systemLti system
Lti system
 
Research internship on optimal stochastic theory with financial application u...
Research internship on optimal stochastic theory with financial application u...Research internship on optimal stochastic theory with financial application u...
Research internship on optimal stochastic theory with financial application u...
 
Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...
 
A Signature Algorithm Based On Chaotic Maps And Factoring Problems
A Signature Algorithm Based On Chaotic Maps And Factoring ProblemsA Signature Algorithm Based On Chaotic Maps And Factoring Problems
A Signature Algorithm Based On Chaotic Maps And Factoring Problems
 
AINL 2016: Strijov
AINL 2016: StrijovAINL 2016: Strijov
AINL 2016: Strijov
 
Traveling Salesman Problem in Distributed Environment
Traveling Salesman Problem in Distributed EnvironmentTraveling Salesman Problem in Distributed Environment
Traveling Salesman Problem in Distributed Environment
 
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENT
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENTTRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENT
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENT
 
StatPhysPerspectives_AMALEA_Cetraro_AnnaCarbone.pdf
StatPhysPerspectives_AMALEA_Cetraro_AnnaCarbone.pdfStatPhysPerspectives_AMALEA_Cetraro_AnnaCarbone.pdf
StatPhysPerspectives_AMALEA_Cetraro_AnnaCarbone.pdf
 
T. Proietti, M. Marczak, G. Mazzi - EuroMInd-D: A density estimate of monthly...
T. Proietti, M. Marczak, G. Mazzi - EuroMInd-D: A density estimate of monthly...T. Proietti, M. Marczak, G. Mazzi - EuroMInd-D: A density estimate of monthly...
T. Proietti, M. Marczak, G. Mazzi - EuroMInd-D: A density estimate of monthly...
 
Alg1
Alg1Alg1
Alg1
 
Introducción al Análisis y diseño de algoritmos
Introducción al Análisis y diseño de algoritmosIntroducción al Análisis y diseño de algoritmos
Introducción al Análisis y diseño de algoritmos
 
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGICDESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
 
Numerical method for pricing american options under regime
Numerical method for pricing american options under regime Numerical method for pricing american options under regime
Numerical method for pricing american options under regime
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptx
 
Lt2419681970
Lt2419681970Lt2419681970
Lt2419681970
 
THE KEY EXCHANGE CRYPTOSYSTEM USED WITH HIGHER ORDER DIOPHANTINE EQUATIONS
THE KEY EXCHANGE CRYPTOSYSTEM USED WITH HIGHER ORDER DIOPHANTINE EQUATIONSTHE KEY EXCHANGE CRYPTOSYSTEM USED WITH HIGHER ORDER DIOPHANTINE EQUATIONS
THE KEY EXCHANGE CRYPTOSYSTEM USED WITH HIGHER ORDER DIOPHANTINE EQUATIONS
 
Iteration Techniques
Iteration TechniquesIteration Techniques
Iteration Techniques
 
Noisy Speech Enhancement Using Soft Thresholding on Selected Intrinsic Mode F...
Noisy Speech Enhancement Using Soft Thresholding on Selected Intrinsic Mode F...Noisy Speech Enhancement Using Soft Thresholding on Selected Intrinsic Mode F...
Noisy Speech Enhancement Using Soft Thresholding on Selected Intrinsic Mode F...
 

Mais de Rediet Moges (10)

Ch3 ex1
Ch3 ex1Ch3 ex1
Ch3 ex1
 
Ch2 ex2
Ch2 ex2Ch2 ex2
Ch2 ex2
 
Ch2 ex1
Ch2 ex1Ch2 ex1
Ch2 ex1
 
Ch1 ex5
Ch1 ex5Ch1 ex5
Ch1 ex5
 
Ch1 ex4
Ch1 ex4Ch1 ex4
Ch1 ex4
 
Ch1 ex3
Ch1 ex3Ch1 ex3
Ch1 ex3
 
Ch1 ex2
Ch1 ex2Ch1 ex2
Ch1 ex2
 
Ch1 ex1
Ch1 ex1Ch1 ex1
Ch1 ex1
 
Digital Signal Processing[ECEG-3171]-Ch1_L05
Digital Signal Processing[ECEG-3171]-Ch1_L05Digital Signal Processing[ECEG-3171]-Ch1_L05
Digital Signal Processing[ECEG-3171]-Ch1_L05
 
Digital Signal Processing[ECEG-3171]-Ch1_L01
Digital Signal Processing[ECEG-3171]-Ch1_L01Digital Signal Processing[ECEG-3171]-Ch1_L01
Digital Signal Processing[ECEG-3171]-Ch1_L01
 

Último

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 

Último (20)

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 

Digital Signal Processing[ECEG-3171]-Ch1_L07

  • 1. Chapter Three Discrete - Time Convolutions Lecture #7 Rediet Million AAiT, School Of Electrical and Computer Engineering rediet.million@aait.edu.et April,2018 (Rediet Million) DSP-Lecture #7 April,2018 1 / 18
  • 2. Introduction In this chapter we look at methods on how the discrete-time samples, once obtained, are processed by a special class of linear time-invariant discrete-time systems to produce an output. Major practical methods considered are block-processing and sample-processing methods. Block processing method deals with finite-duration blocks of data at a time.Typical applications include -FIR filtering of finite-duration signals by convolution -DFT/FFT spectral computations -Speech analysis and synthesis and image processing Sample processing methods are primarily used in real -time applications such as: -Real-time filtering, -Digital audio effects processing, -Digital control systems, -Adaptive signal processing (Rediet Million) DSP-Lecture #7 April,2018 2 / 18
  • 3. Introduction Various equivalent forms of the convolution operation will also be presented. These equivalent forms of convolution are: Direct form:Leads to block diagram realization and sample processing algorithm. LTI form : incorporates linearity and time-invariance properties. Matrix form: represents compact vectorial representation of the filtering operation. Flip-and-slide form:Shows clearly input-on and input-off transients and steady-state behavior. Overlap-add block convolution: used whenever the input is extremely long or infinite in duration. (Rediet Million) DSP-Lecture #7 April,2018 3 / 18
  • 4. 3.1 Block processing methods The main feature of block processing methods is that data is collected and processed in blocks at a time. Consider a finite set of samples of length L representing a finite time record of the input signal x(n). For a sampling interval of T the duration TR of the data record, in seconds, will be TR = (L − 1)T TR = L fs or L = TR = fs Thus, the signal block or vector of length-L is : x = [x0, x1, x2, .., xL−1] (Rediet Million) DSP-Lecture #7 April,2018 4 / 18
  • 5. Block processing methods Direct form convolution Consider a causal FIR filter order M with impulse response h = {h0, h1, h2, ..., hM} - The length of the impulse response is Lh = M + 1 The response of the order - M FIR filter to a length-Lx input x(n) i.e x = {x0, x1, x2, ..., xLx −1} is obtained,using the direct form convolution as y(n) = m h(m)x(n − m) -Range of h(m) is 0 ≤ m ≤ M.....................(1) -Range of x(n − m) is 0 ≤ n − m ≤ Lx − 1........(2) To determine the range of values of the output index ’n’ we write (2) in the form of m ≤ n ≤ Lx − 1 + m (Rediet Million) DSP-Lecture #7 April,2018 5 / 18
  • 6. Block processing methods Direct form convolution and use (1) to expand the limits to 0 ≤ m ≤ n ≤ Lx − 1 + m ≤ Lx − 1 + M ⇒The limits for the output index is 0 ≤ n ≤ Lx − 1 + M..........(3) - Thus, Ly = Lx + M and y = {y0, y1, y2, ..., yLx −1+M} For any values of the output index ’n’ in the range (3),we must determine the summation range over ’m’ in the convolution equation - Changing the sign of (2) we obtain −(Lx − 1) ≤ m − n ≤ 0 and adding ’n’ to all sides n − Lx + 1 ≤ m ≤ n..........(4) - ’m’ must satisfy equation (1) and (4) i.e max(0, n − Lx + 1) ≤ m ≤ min(n, M) In the case of an order M FIR filter and a length Lx input ,the direct form of convolution is given as : y(n) = min(n,M) m=max(0,n−Lx +1) h(m)x(n − m) (Rediet Million) DSP-Lecture #7 April,2018 6 / 18
  • 7. Block processing methods Convolution table A convenient way of expressing the direct form convolution is as follows convolution table form : y(n) = n=i+j h(i)x(j) Each output yn is the sum of all possible products hi xj for which i + j = m.This leads directly to the convolution table. - In the ij-plane, the condition i + j = n represents the nth anti-diagonal.These anti-diagonal entries are summed to form yn. (Rediet Million) DSP-Lecture #7 April,2018 7 / 18
  • 8. Block processing methods Convolution table Example : Compute the convolution of h(n) and x(n), where (Rediet Million) DSP-Lecture #7 April,2018 8 / 18
  • 9. Block processing methods LTI form convolution This type of convolution uses linearity and time-invariance properties of the filter to determine the output sequence. For an input sequence x = [x0, x1, x2, x3, x4] and impulse response h(n), we may rewrite the LTI form of convolution as: y(n) = min(n,Lx −1) m=max(0,n−M) x(m)h(n − m) A convolution table type of operation can be formed for the LTI form of convolution where the output values, yn, may be obtained by summing entries column-wise, with h arranged along the row and x arranged along the column. (Rediet Million) DSP-Lecture #7 April,2018 9 / 18
  • 10. Block processing methods Matrix form of convolution The convolution equation may also be written in a matrix form as: y = Hx where H is an (L + M)xL matrix built out of the filter’s impulse response,h(n). The columns of H are the successively delayed replicas of the impulse response vector h(n). (Rediet Million) DSP-Lecture #7 April,2018 10 / 18
  • 11. Block processing methods Matrix form of convolution Example : Compute y when We may also rewrite the convolution equation as : y = Xh where X is an (L + M)x(M + 1) matrix (Rediet Million) DSP-Lecture #7 April,2018 11 / 18
  • 12. Block processing methods Flip-and slide form of convolution (Graphical form) Here h(n) is flipped around or reversed and then slid over the input data sequence. At each time instant, the output sample is obtained by computing the dot product of the filter vector h with M + 1 input samples aligned below it, as shown below: (Rediet Million) DSP-Lecture #7 April,2018 12 / 18
  • 13. Block processing methods Overlap-add block convolution method In many applications considering the input as a single block may not be practical.A practical approach is to divide the long input into non-overlapping contiguous blocks of practical length, say L samples. Each block is convolved with the order-M filter h(n) producing the output blocks appropriately combined together to get the overall output. y0 = h ∗ x0 y1 = h ∗ x1 y2 = h ∗ x2 y3 = h ∗ x3 Transient and steady-state components (Rediet Million) DSP-Lecture #7 April,2018 13 / 18
  • 14. Block processing methods Transient and steady-state components For a length-L input and order-M filter,the output sequence can be divided into three sub-ranges for the range of the output time index n 0 ≤ n ≤ L − 1 + M Input-on transient: It takes the filter M time units before it is completely over the nonzero portion of the input sequence. Steady-state: the filter remains completely over the nonzero portion of the input data. Input-off transient: It represent the output after the input is turned off. (Rediet Million) DSP-Lecture #7 April,2018 14 / 18
  • 15. Block processing methods Transient and steady-state components (Rediet Million) DSP-Lecture #7 April,2018 15 / 18
  • 16. Block processing methods Convolution of infinite sequences Consider the direct form convolution y(n) = min(n,M) m=max(0,n−L+1) hmxn−m We can obtain the correct summation limits for the following three cases: 1. M → ∞, L < ∞, i.e infinite filter length and finite input length. 2. M < ∞, L → ∞, i.e finite filter length and infinite input length. 3. M → ∞, L → ∞, i.e infinite filter length and infinite input length. In all the above cases, the output index is 0 ≤ n ≤ ∞ and - When M → ∞ ,the upper limit in the sum becomes min(n, M) = n - When L → ∞ ,the lower limit in the sum becomes max(0, n − L + 1) = 0 (Rediet Million) DSP-Lecture #7 April,2018 16 / 18
  • 17. Block processing methods Convolution of infinite sequences Thus, we have (Rediet Million) DSP-Lecture #7 April,2018 17 / 18
  • 18. Block processing methods (#1 ) Class exercises & Assignment 1) Compute the convolution ,y = h ∗ x, of the filter and input a. h = [1, 1, 2, 1] x = [1, 2, 1, 1, 2, 1, 1, 1] b. h = [1, 0, 0, 1] x = [1, 1, 2, 2, 2, 2, 1, 1] using the following five methods i. Direct form ii. Convolution table iii.LTI-form iv.Matrix form v. The overlap-add methods of block convolution. 2) An IIR filter has h(n) = (0.25)nu(n).Derive a closed form expressions for the output y(n) when the input is a. a unit step,x(n) = u(n) b. a pulse of finite duration samples,x(n) = u(n) − u(n − 8) c. an alternating step,x(n) = (−2)nu(n) (Rediet Million) DSP-Lecture #7 April,2018 18 / 18
  • 19. Chapter three reading assignment Sample Processing Methods Transposed realization (Rediet Million) DSP-Lecture #7 April,2018 19 / 18