2.1.2 Classification of discrete time signal • Energy signals and power signal – The energy E of a signal xn is given: – If E is finite, xn is call an energy signal... 2.2 Discrete time
Trang 1Xử lý tín hiệu số Signal and System in Time Domain
Ngô Quốc Cường
Ngô Quốc Cường
ngoquoccuong175@gmail.com
sites.google.com/a/hcmute.edu.vn/ngoquoccuong
Trang 2Signal and System in Time Domain
• Discrete time signals
• Discrete time systems
• LTI systems
2
Trang 32.1 Discrete - time signals
• A discrete time signal x(n) is a function of an independent
variable that is integer
3
Trang 42.1 Discrete - time signals
• Alternative representation of discrete time signal:
4
Trang 52.1 Discrete - time signals
• Alternative representation of discrete time signal:
5
Trang 62.1.1 Some elementary signals
6
Trang 72.1.1 Some elementary signals
7
Trang 82.1.1 Some elementary signals
8
Trang 92.1.1 Some elementary signals
9
Trang 102.1.2 Classification of discrete time signal
• Energy signals and power signal
– The energy E of a signal x(n) is given:
– If E is finite, x(n) is call an energy signal
10
Trang 112.1.2 Classification of discrete time signal
• Energy signals and power signal
– The average power P of a signal x(n) is defined:
– If P is finite (and nonzero), x(n) is called a power signal
11
Trang 122.1.2 Classification of discrete time signal
• Energy signals and power signal
– Example: the average power of the unit step signal is:
12
Trang 132.1.2 Classification of discrete time signal
• Periodic signals and aperiodic signals
– A signal x(n) is periodic with period N (N >0) if and only if
13
Trang 142.1.2 Classification of discrete time signal
• Symmetric (even) and antisymmetric (odd) signals
– A real value signal x(n) is call symmetric if
– A signal is call antisymmetric if
14
Trang 152.1.2 Classification of discrete time signal
15
• Symmetric (even) and antisymmetric (odd) signals
Trang 162.1.2 Classification of discrete time signal
– The even signal component is formed by adding x(n) to n) and dividing by 2
x(-– Odd signal component
16
Trang 172.1.3 Simple manipulations of signals
17
• Transformation of time
– A signal x(n) may be shifted by replacing n bay n-k
• k is positive number: delay
• k is negative number: advance – Folding: replace n by -n
– Time scaling: replace n by cn (c is an integer)
Trang 182.1.3 Simple manipulations of signals
• Transformation of time
– Find x(n-3) and x(n+2) of x(n)
18
Trang 192.1.3 Simple manipulations of signals
• Transformation of time
– Find x(-n) and x(-n+2) of x(n)
19
Trang 202.1.3 Simple manipulations of signals
• Transformation of time
– Show the graphical representation of y(n) = x(2n), where x(n) is
20
Trang 212.1.3 Simple manipulations of signals
• Addition, multiplication, and scaling
– Amplitude scaling
– Sum
– Product
21
Trang 22Exercises
22
Trang 23Exercises
• x(n) is illustrated in the figure
• Sketch the following signals
23
Trang 242.2 Discrete time systems
• Device or algorithm that performed some prescribed operation on discrete time signal
24
Trang 252.2 Discrete time systems
• Determine the response of the following systems to the input signal
25
Trang 262.2 Discrete time systems
• Block diagram representation
– An adder
26
Trang 272.2 Discrete time systems
• Block diagram representation
– A constant multiplier
27
Trang 282.2 Discrete time systems
• Block diagram representation
– A signal multiplier
28
Trang 292.2 Discrete time systems
• Block diagram representation
– A unit delay element
– A unit advance element
29
Trang 302.2 Discrete time systems
• Block diagram representation
30
Trang 312.2 Discrete time systems
• Classification of discrete time systems
– Static versus dynamic systems
– Time invariant versus time variant systems
– Linear versus nonlinear systems
– Causal versus noncausal systems
– Stable versus unstable systems
31
Trang 322.2 Discrete time systems
• Classification of discrete time systems
– Static versus dynamic systems
• Static: output at any instant n depends at most on the input sample at the same time – memoryless
• Dynamic: to have memory
32
Trang 332.2 Discrete time systems
• Classification of discrete time systems
– Time invariant versus time variant systems
• Time invariant: input – output characteristics do not change with time
33
Trang 342.2 Discrete time systems
• Classification of discrete time systems
– Linear versus nonlinear systems
34
Trang 352.2 Discrete time systems
35
Trang 362.2 Discrete time systems
• Classification of discrete time systems
– Causal versus noncausal systems
• The output of the system at any time n depends only on present and past inputs but does not depend on future inputs
36
Trang 372.2 Discrete time systems
37
Trang 382.2 Discrete time systems
• Classification of discrete time systems
– Stable versus unstable systems
• An arbitrary relaxed system is said to be bounded input bounded output stable if and only if every bounded input produces a bounded output
𝑥 𝑛 ≤ 𝑀𝑥 < ∞
𝑦 𝑛 ≤ 𝑀𝑦 < ∞
38
Trang 392.2 Discrete time systems
39
Trang 402.2 Discrete time systems
• Interconnection of discrete time systems
40
Trang 412.3 Analysis of discrete time LTI systems
• LTI: Linear Time Invariant
• 2 methods:
– Solve the difference equation
– Decompose the input signal into a sum of elementary signals Using the linearity property, the responses of the system to the elementary signals are added to obtain the total response of the system
41
Trang 422.3 Analysis of discrete time LTI systems
• Resolution of discrete time signal into impulses
• Example:
42
Trang 432.3 Analysis of discrete time LTI systems
• Response of LTI system to arbitrary input
– Denote the response y(n, k) of the system to unit sample sequence at n = k by symbol h(n, k)
– The response of the system to x(n)
43
Trang 442.3 Analysis of discrete time LTI systems
• Response of LTI system to arbitrary input: convolution
– The formula reduces to
– The response at n = n0 is given as
44
Trang 452.3 Analysis of discrete time LTI systems
• Response of LTI system to arbitrary input
– Summarize
45
Trang 462.3 Analysis of discrete time LTI systems
• Response of LTI system to arbitrary input
– Example
– The output is
46
Trang 47Exercise
47
Trang 48Exercise
48
Trang 49Exercise
49
Trang 502.3 Analysis of discrete time LTI systems
• Properties of convolution and interconnection
50
Trang 512.3 Analysis of discrete time LTI systems
• Causal linear time invariant system
• An LTI system is causal if and only if its impulse response is zero for n<0
51
Trang 522.3 Analysis of discrete time LTI systems
• Stability of linear time invariant system
– A linear time invariant system is stable if its impulse
response is summable
52
Trang 53• LTI system can be characterized in terms of its impulse response h(n)
– Finite duration impulse response
– Infinite duration impulse response
• Causal FIR system
53
Trang 54• Practical DSP methods fall in two basic classes:
– Block processing methods
– Sample processing methods
• In block processing methods, the data are collected and processed in blocks
• In sample processing methods, the data are processed one
at a time Sample processing methods are used primarily in real-time applications
54
Trang 56Block processing
• In many practical applications, we sample our analog input signal (in accordance with the sampling theorem requirements) and collect a finite set of samples, say L samples, representing a finite time record of the input signal The duration of the data record in seconds will be:
56
Trang 57Block processing
• The direct and LTI forms of convolution given by
57
Trang 60Block processing
• Direct Form
60
Trang 61Block processing
• Direct Form
61
Trang 62Block processing
• Convolution table
62
Trang 63Block processing
• Convolution table
– Folding the table,
63
Trang 65Block processing
• LTI form
– The effect of the filter is to replace each delayed impulse
by the corresponding delayed impulse response
65
Trang 66Block processing
• LTI form
66
Trang 67Block processing
• Matrix form
– The convolutional equations can also be written in the
linear matrix form
– The filter matrix H must be rectangular with dimensions
67
Trang 68Block processing
• Matrix form
– There is also an alternative matrix form written as follows:
– the data matrix X has dimension:
68
Trang 69Block processing
• Flip and Slide form
69
Trang 70Block processing
• Overlap-Add block
70
Trang 72Block processing
• Overlap-Add block
– aligning the output blocks according to their absolute
timings and adding them up
72
Trang 73Problems
• Compute the convolution, y = h ∗ x, of the filter and input
• Using the following three methods:
– (a) The convolution table
– (b) The LTI form of convolution, arranging the
computations in a table form
– (c) The overlap-add method of block convolution with
length-3 input blocks Repeat using length-5 input blocks
73
Trang 7474
Trang 7575
Trang 7676
Trang 772.4 Discrete time systems described by
difference equations
• The practical implementation of the IIR system is impossible since it requires an infinite number of memory locations, multiplications, and additions
• Practical and computationally efficient means: difference equations
77
Trang 782.4 Discrete time systems described by
difference equations
• Recursive and non-recursive system
– Compute the cumulative average of a signal x(n) defined
Trang 792.4 Discrete time systems described by
difference equations
• Recursive and non-recursive system
– Non-recursive system: depends only on the present and the past inputs
79
Trang 802.4 Discrete time systems described by
difference equations
• Recursive and non-recursive system
80
Trang 812.4 Discrete time systems described by
difference equations
• The general form:
• N: the order of the difference equation = the order of the system
81
Trang 822.4 Discrete time systems described by
difference equations
• Solution of linear constant coefficient difference equation
– Direct method
– Indirect method (z - transform)
• The direct solution method assumes that the total solution is the sum of two parts:
– y h (n): homogeneous solution
– y p (n): particular solution
82
Trang 832.5 Structure for the realization of LTI systems
• Consider the 1st order system
• This realization uses separate delays for both input and output, called Direct Form 1 structure
83
Trang 842.5 Structure for the realization of LTI systems
• Interchange the order of the recursive and non-recursive
systems
84
Trang 852.5 Structure for the realization of LTI systems
• Two delay elements can be merged into one delay
85
Direct Form 2 structure
Trang 862.5 Structure for the realization of LTI systems
Trang 872.5 Structure for the realization of LTI systems
• Direct Form 2
87
Trang 882.5 Structure for the realization of LTI systems
88
Trang 8989
Trang 9090