Discrete-time Systems in the Time Domain Chaiwoot Boonyasiriwat - - PowerPoint PPT Presentation

discrete time systems
SMART_READER_LITE
LIVE PREVIEW

Discrete-time Systems in the Time Domain Chaiwoot Boonyasiriwat - - PowerPoint PPT Presentation

Discrete-time Systems in the Time Domain Chaiwoot Boonyasiriwat August 21, 2020 Discrete-time Systems A discrete-time system is an entity that processes a discrete-time input signal to produce a discrete- time output signal


slide-1
SLIDE 1

Chaiwoot Boonyasiriwat

August 21, 2020

Discrete-time Systems in the Time Domain

slide-2
SLIDE 2

Discrete-time Systems

2

▪ “A discrete-time system is an entity that processes a discrete-time input signal to produce a discrete- time output signal .” ▪ Digital signals are in both amplitude and time. ▪ A system associated with digital signals is a digital filter. ▪ “A finite-dimensional linear time-invariant (LTI) discrete-time system can be represented in the time domain by a constant-coefficient difference equation” ▪ “Many problems can be modeled as discrete-time systems using difference equations.”

Schilling and Harris (2012, p.70-71)

slide-3
SLIDE 3

Example: Radar

3

▪ “A radar antenna transmits an EM wave into

  • space. When a target is illuminated by the radar, some
  • f signal energy is reflected back and returns to the

radar receiver.” ▪ “The received signal can be modeled using the difference equation” ▪ “The first term represents the echo of the transmitted signal with delay d proportional to the time of flight.” ▪ “The second term accounts for random noise picked up and amplified by the receiver.” ▪ “Typically, the echo is very faint, i.e., .”

Schilling and Harris (2012, p.70-71)

slide-4
SLIDE 4

Example: Radar

4

“The objective in processing the received signal is to determine whether or not an echo is present.”

Schilling and Harris (2012, p.72-73)

“If an echo is detected, then the distance to the target can be

  • btained from the delay d.”

Noise-corrupted received signal

slide-5
SLIDE 5

Example: Radar

5

▪ “If T is the sampling interval, then the time of flight in seconds is .” ▪ The distance to the target is where c is the speed of light and the factor 2 arises because the time of flight is a two-way travel time. ▪ “To detect if an echo is present in the received signal, we compute the normalized cross-correlation which measures the degree to which the received signal is similar to the transmitted signal .”

Schilling and Harris (2012, p.72-73)

slide-6
SLIDE 6

Example: Radar

6

slide-7
SLIDE 7

Classification of Discrete-time Signals

7

▪ Finite signal: signal is nonzero for a finite number of samples where . Otherwise, it is called infinite signal. ▪ Causal signal: . Otherwise, it is called noncausal signal. ▪ Periodic signal: where N is the period. ▪ Bounded signal: . Otherwise, it is an unbounded signal.

Schilling and Harris (2012, p.74-75)

slide-8
SLIDE 8

Norm of Signals

8

▪ Signals can be thought of as vectors. ▪ The length of vectors can be measured by

  • norm
  • norm

▪ Absolutely summable signal: ▪ Square summable signal:

Schilling and Harris (2012, p.76-77)

slide-9
SLIDE 9

Energy and Power Signals

9

▪ Energy of signal is defined as ▪ Since , the energy is finite if is square summable. ▪ Energy signal: a signal with finite energy ▪ Instantaneous power: ▪ Average power: ▪ Power signal: a finite signal with nonzero average power

Schilling and Harris (2012, p.77-78)

slide-10
SLIDE 10

Common Signals

10

▪ Unit impulse: ▪ Unite step: ▪ Causal exponential: ▪ Periodic signal:

Schilling and Harris (2012, p.79-80)

slide-11
SLIDE 11

Discrete-time Systems

11

▪ Linear system: S is a linear system if Otherwise, the system S is nonlinear. ▪ Time-invariant system: S is a time-invariant system if the output produced by the shifted input is . Otherwise, the system S is time-varying. ▪ Causal system: “For a physical system operating in real time, the output at the present time k cannot depend

  • n the future input , because the input has

not yet occurred.” ▪ “A discrete-time system is causal if for each time k”

Schilling and Harris (2012, p.82-83)

slide-12
SLIDE 12

Discrete-time Systems

12

▪ “When signal processing is not performed in real time, noncausal systems can be used to process the data

  • ffline in batch mode, where future samples of the input

are available.” ▪ Stable system: S is a bounded-input bounded-output (BIBO) stable if every bounded input produces a bounded output : ▪ Passive system: energy does not increase: ▪ Lossless system: energy stays the same:

▪ “Lossless physical systems contain energy storage elements (spring, mass, capacitor, inductor) without energy dissipative elements (resistor, damper)

Schilling and Harris (2012, p.85-86)

slide-13
SLIDE 13

Difference Equations

13

▪ “The output of a causal LTI system S at time k can be expressed as” ▪ “When causal inputs are used, the output or response of a discrete-time system depends on both the input and the initial condition represented by a vector

  • f past outputs,”

▪ “For a linear system, the contributions to the output from initial condition y0 and input x(k) can be considered separately.”

Schilling and Harris (2012, p.86)

slide-14
SLIDE 14

Zero-input Response

14

▪ Zero-input response of a discrete-time system S is the solution of the system when the input is x(k) = 0 and is denoted as yzi(k). ▪ To solve the system for a zero-input response, let’s use the trial solution of the form where z is a complex scalar to be determined. ▪ Substituting the trial solution into the system and multiplying both sides by zN-k yields the characteristic polynomial,

Schilling and Harris (2012, p.87)

slide-15
SLIDE 15

Zero-input Response: Simple Mode

15

▪ The factored form of the characteristic polynomial is where pi are the roots. So, z must be equal to the roots. ▪ If the characteristic polynomial has N distinct roots, also called simple roots, the general solution is the linear combination where are called the simple natural modes of the system. ▪ Applying the initial conditions yields a linear system for determining the value of the coefficients ci.

Schilling and Harris (2012, p.87)

slide-16
SLIDE 16

Example

16

Consider the 2D discrete-time system with initial condition y(-1) = 3 and y(-2) = 2. The characteristic polynomial of the system is and has simple roots The zero-input response is then of the form Applying the initial conditions yields the linear system

Schilling and Harris (2012, p.88)

slide-17
SLIDE 17

Zero-input Response: Multiple Mode

17

When root p occurs r times, p is referred to as a root of multiplicity r, and generates a multiple natural mode of the form Example: System with initial condition y(-1) = -1 and y(-2) = 6 has the corresponding characteristic polynomial as whose root is of multiplicity 2. The zero-input response is then of the form Applying the initial conditions yields the linear system

slide-18
SLIDE 18

Zero-input Response: Complex Mode

18

When roots are complex, they always occur in conjugate pairs since the coefficients of a(z) are real. Complex conjugate roots form the complex mode

  • f the form

Hint: use Euler identity Example: System with initial condition y(-1) = 4 and y(-2) = 2 has the corresponding characteristic polynomial as The zero-input response is then of the form Applying the initial conditions yields

Schilling and Harris (2012, p.90)

slide-19
SLIDE 19

Zero-state Response

19

Zero-state response of a LTI discrete-time system is the

  • utput corresponding to an arbitrary input x(k) when the

initial condition vector is zero, i.e., Consider a special case of causal exponential input of the form where A is amplitude and p0 exponential factor. If then the input polynomial associated with the coefficients of the input is

Schilling and Harris (2012, p.90)

slide-20
SLIDE 20

Zero-state Response

20

Suppose that the input is a causal exponential and that the characteristic polynomial a(z) has N+1 distinct roots. The zero-state response has a form similar to the zero-input response: “The weighting coefficient can be computed from the polynomials a(z) and b(z) as where pi are the roots of the denominator.”

Schilling and Harris (2012, p.90-91)

slide-21
SLIDE 21

Example

21

Consider the system with the input “The characteristic polynomial of this system is” “The input polynomial of this system is” We then have

Schilling and Harris (2012, p.91)

slide-22
SLIDE 22

Example (continued)

22

The weighting coefficients are The zero-state response is then The complete response is

Schilling and Harris (2012, p.91)

slide-23
SLIDE 23

Example (continued)

23

Suppose the initial condition is that is The zero-input response is So, the complete response of the system is

Schilling and Harris (2012, p.92)

“Note that for n >> 1, the complete response is dominated by the zero-state response because the zero- input response quickly dies

  • ut.”
slide-24
SLIDE 24

Block Diagram

24

▪ “Discrete-time systems can be displayed graphically in the form of block diagrams.” ▪ “A block diagram is a set of blocks that represent processing units interconnected by directed line segments that represent signals.”

Schilling and Harris (2012, p.94-95)

slide-25
SLIDE 25

Block Diagram: Example 1

25

Consider a moving average filter whose output is a weighted sum of the past inputs:

When M = 3, the block diagram of moving average filter is

Schilling and Harris (2012, p.95)

slide-26
SLIDE 26

Block Diagram: Example 2

26

A LTI system can be rewritten as

by zero padding the coefficient vectors a and b so that where is the system dimension. When D = 2, using intermediate signals, the output can be defined recursively by

Schilling and Harris (2012, p.96)

slide-27
SLIDE 27

Block Diagram: Example 2

27

When D = 2, the block diagram for the system is

Schilling and Harris (2012, p.96)

slide-28
SLIDE 28

Block Diagram: Example 2

28

For an arbitrary value of D, the output can then be defined recursively as

Schilling and Harris (2012, p.96)

slide-29
SLIDE 29

Impulse Response

29

▪ “The impulse response of a LTI system is the zero-state response h(k) produced by the unit impulse input.” ▪ The impulse response can be used to compute the zero- state response of any input. Consider a system The impulse response of this system is

Schilling and Harris (2012, p.96-97)

slide-30
SLIDE 30

Impulse Response

30

Recall the property of unit impulse Consequently, the impulse response is “A linear system whose impulse response contains a finite number of nonzero samples is called a finite impulse response (FIR) system. Otherwise, the system is an infinite impulse response (IIR) system.”

Schilling and Harris (2012, p.97)

slide-31
SLIDE 31

FIR System: Example

31

Consider a moving average filter The impulse response of this filter is

Schilling and Harris (2012, p.97-98)

M = 10

slide-32
SLIDE 32

IIR System

32

Consider a LTI system A systematic technique for solving this general system is the Z transform which will be introduced later. “Suppose that and the roots of the characteristic polynomial a(z) are simple and nonzero.” The impulse response in this case is where pi are the roots of a(z).

Schilling and Harris (2012, p.98-99)

slide-33
SLIDE 33

IIR System

33

The coefficient vector is computed by where b(z) is the input polynomial and p0 = 0. “If for some i > 0, then the duration of the impulse response h(k) is infinite, in which case S is an IIR system.”

Schilling and Harris (2012, p.99)

slide-34
SLIDE 34

IIR System: Example

34

Consider the system S governed by difference equation The characteristic polynomial of S is So, S has simple nonzero roots at Then, the impulse response is The input polynomial is The coefficients are

Schilling and Harris (2012, p.99)

slide-35
SLIDE 35

IIR System: Example

35

The impulse response of S has infinite duration. So, S is an IIR system.

Schilling and Harris (2012, p.100)

slide-36
SLIDE 36

Linear Convolution

36

Recall that (zero-state output) For LTI system, “A causal signal x(k) can be written as a weighted sum of unit impulses as” For LTI system, the zero-state output to the causal signal is The operation on the right-hand side is called linear convolution of signal x(k) with signal h(k):

Schilling and Harris (2012, p.100-101)

slide-37
SLIDE 37

Linear Convolution

37

Convolution is commutative: For FIR system S, the impulse response is equal to the input coefficient. So,

Schilling and Harris (2012, p.100-101) which is the original difference equation

slide-38
SLIDE 38

Properties of Linear Convolution

38

Schilling and Harris (2012, p.102)

slide-39
SLIDE 39

Linear Convolution: Example

39

Consider the system Suppose the input is and the initial condition is zero. The output of the system is then MATLAB: k = 0:40; x = 10*sin(0.1*pi*k); y = filter([2,-3,4],[1,-0.2,-0.8],x);

Schilling and Harris (2012, p.102)

slide-40
SLIDE 40

Linear Convolution: Example

40

slide-41
SLIDE 41

Linear Convolution

41

If h(k) is nonzero for and x(k) is nonzero for , then the linear convolution can be expressed as ▪ “The upper limit has been changed from k to L – 1 because h(i) = 0 for i  L.” ▪ “Linear convolution of an L-point signal with an M- point signal is a signal of length L + M – 1.”

Schilling and Harris (2012, p.103)

slide-42
SLIDE 42

Linear Convolution

42

Linear convolution of L-point signal h(k) and M-point signal x(k) can be represented as matrix multiplication. Example: L = 2, M = 3

linear convolution matrix

slide-43
SLIDE 43

Circular Convolution

43

▪ Circular convolution is an operator whose result has the same length as the two operands. ▪ “The periodic extension of an N-point signal x(k) is a signal xp(k) defined for all integers k as follows.” where the modulo operator returns the remainder of the division between two numbers. Example: 5 modulo 2 = 1 MATLAB: mod(5,2) ▪ “xp(k) extends x(k) periodically in both positive and negative directions.” ▪ Example: xp(N) = x(0), xp(-1) = x(N-1)

Schilling and Harris (2012, p.103)

slide-44
SLIDE 44

Circular Convolution

44

Circular convolution of N-point signals h(k) and x(k) is defined as Example: k = 2, N = 8

Schilling and Harris (2012, p.104)

slide-45
SLIDE 45

Circular Convolution

45

Circular convolution of N-point signals h(k) and x(k) can be represented as matrix multiplication. Example: N = 4

Schilling and Harris (2012, p.104-105)

Circular convolution matrix

slide-46
SLIDE 46

Zero Padding

46

▪ Circular convolution can be implemented using the fast Fourier transform (FFT). However, circular convolution produce a different response than linear convolution (zero-state response of a linear discrete-time system). ▪ Zero padding can be used to modify the L-point signal h(k) and M-point signal ..x(k) so that circular convolution provides the same result as linear convolution.

Schilling and Harris (2012, p.105-106)

L-1 M-1

slide-47
SLIDE 47

Zero Padding

47

“Thus, hz and xz are zero-padded vectors of length N = L + M – 1.” So,

Schilling and Harris (2012, p.105-106) hz(k) has only L – 1 nonzero elements xz(k) has only L – 1 zeros padded to the end of it. So, xzp(k-i) = xz(k-i) xzp(k) is periodic extension of xz(k). This can be easily verified.

slide-48
SLIDE 48

Exercise

48

Let Verify that

slide-49
SLIDE 49

Deconvolution

49

▪ When the impulse response h(k) and the output y(k) of the system are known, the input x(k) is to be obtained. ▪ This process is referred to as deconvolution. ▪ Suppose h(k) and x(k) are both causal and ▪ Evaluating at k = 0 yields ▪ Once is known, the remaining samples of x(k) can be obtained recursively. ▪ At k = 1, Solving for x(1) yields

Schilling and Harris (2012, p.108)

slide-50
SLIDE 50

Deconvolution

50

▪ Repeating the process for 2  k < N, we obtain ▪ “Deconvolution also includes finding the impulse response h(k), given the input x(k) and the output y(k).” This is a special case of system identification. Exercise: Given the impulse response and the output of a system as Find the input x(k).

Schilling and Harris (2012, p.108)

slide-51
SLIDE 51

Polynomial Arithmetic

51

“Suppose A(z) and B(z) are polynomials of degree L and M, respectively.” Let be the product polynomial of degree N = L + M, that is The coefficients of C(z) can be obtained using linear convolution between the coefficients of A(z) and B(z) as where a(k), b(k), c(k) are the coefficients of polynomials A(z), B(z), C(z).

Schilling and Harris (2012, p.109)

slide-52
SLIDE 52

Polynomial Arithmetic: Example

52

Consider the polynomials whose coefficient vectors are Then, As a result, MATLAB: a = [2, -1, 6]; b = [5, 3, -4]; c = conv(a,b);

Schilling and Harris (2012, p.109-110)

slide-53
SLIDE 53

Linear Cross-Correlation

53

Linear cross-correlation of L-point signal y(k) with M-point signal x(k) where M  L is denoted as ryx(k) and defined as ▪ If x(k) is causal, the lower limit can be set to i = k. ▪ “Linear cross-correlation is sometimes defined without the scaling factor 1/L.” ▪ “The scaling factor is used here so that it is consistent with the statistical definition of cross-correlation between two random signals.”

Schilling and Harris (2012, p.110-111)

slide-54
SLIDE 54

Linear Cross-Correlation

54

Linear cross-correlation of L-point signal y(k) with M-point signal x(k) can be represented as matrix multiplication. Example: L = 3, M = 2 Thus, linear cross-correlation of y(k) with x(k) can be expressed as where D(x) is correlation matrix.

Schilling and Harris (2012, p.110-111)

linear cross-correlation matrix

slide-55
SLIDE 55

Exercise

55

“Linear cross-correlation can be used to measure the degree to which the shape of one signal is similar to the shape of the other signal.” Given Compute the linear cross-correlation of y(k) with x(k).

Schilling and Harris (2012, p.111-113)

slide-56
SLIDE 56

Normalized Linear Cross-Correlation

56

Proakis and Manolakis (1992) showed that the square of cross-correlation is bounded The normalized linear cross-correlation is then defined as As a result, When a correlation peak approaches 1, there is a strong correlation between y(k) and x(k).

Schilling and Harris (2012, p.113-114)

slide-57
SLIDE 57

Circular Cross-Correlation

57

“Let y(k) and x(k) be N-point signals, and let xp(k) be the periodic extension of x(k). The circular cross-correlation

  • f y(k) with x(k) is denoted as cyx(k) and defined as”

Normalized circular cross-correlation is then defined as

Schilling and Harris (2012, p.114-115)

slide-58
SLIDE 58

Properties of Cross-Correlation

58

Symmetry: Relationship with convolution: Relationship between linear and circular correlations: y(k) = L-point signal, x(k) = M-point signal, M  L. where yz(k) and xz(k) are zero-padded versions of y(k) and x(k), respectively, such that both yz(k) and xz(k) are of length L + M + p with p  -1.

Schilling and Harris (2012, p.115-116)

slide-59
SLIDE 59

Lab: Echo Detection

59

▪ Let x(k) be transmitted signal and y(k) be received signal. ▪ Suppose the sampling frequency is fs = 1 MHz and the number of transmitted samples is M = 512. ▪ Let x(k) be a multi-frequency chirp, a sinusoidal signal whose frequency varies with time: ▪ “The received signal y(k) includes a scaled and delayed version of the transmitted signal plus measurement noise.”

Schilling and Harris (2012, p.127)

slide-60
SLIDE 60

Lab: Echo Detection

60

▪ Suppose received signal consists of L = 2048 samples. ▪ “If xz(k) denotes the transmitted signal, zero-extended to L points, then the received signal can be expressed as” ▪ The first term is the echo of the transmitted signal with attenuation factor a ≪ 1 and delayed by d samples. ▪ The second term is atmospheric noise. Suppose the noise is uniformly distributed over the interval [-, ]. ▪ If T is the sampling interval, then the time of flight in seconds is . Distance to the target is where c is the speed of light and the factor 2 arises because the time of flight is a two-way travel time.

Schilling and Harris (2012, p.127)

slide-61
SLIDE 61

Lab: Echo Detection

61

▪ Generate the input signal x(k), atmospheric noise (k), and received signal y(k) with your own choice of attenuation factor a, delay d, and noise bound . ▪ Perform linear cross-correlation and normalized linear cross-correlation of y(k) with x(k) to determine the delay d. Also plot the correlation results.

slide-62
SLIDE 62

▪ Schilling, R. J. and S. L. Harris, 2012, Fundamentals of Digital Signal Processing using MATLAB, Second Edition, Cengage Learning. ▪ Schilling, R. J. and S. L. Harris, 2012, Introduction to Digital Signal Processing using MATLAB, Second Edition, Cengage Learning.

References