Repeat the previous problem using a weighted average of the last four samples. The weights in this

Question:

Repeat the previous problem using a weighted average of the last four samples. The weights in this case are placing greater emphasis on recent samples and less emphasis on older samples. Use the weights 0.1, 0.2, 0.3, and 0.4.

OUT[n] = 0.1(IN[n - 3])+ 0.2(IN[n 2])+ 0.3(IN[n 1]) OUT[5] = 0.1(IN[2]) + 0.2(IN[3]) + 0.3(IN[4]) - + 0.4


Data from Previous Problem

The data in Table 11-13 are input samples taken by an A/D converter. Notice that if the input data were plotted, it would represent a simple step function like the rising edge of a digital signal. Calculate the simple average of the four most recent data points, starting with OUT[4] and proceeding through OUT[10]. Plot the values for IN and OUT against the sample number n as shown in Figure 11-41.

Sample calculations:

(IN[n OUT[n] OUT[4] (IN[1] OUT[5] = (IN[2] = - - 3] + IN[n  2] + IN[n + IN[2] + IN[3] + IN[3] + IN[4] 1] +

(Notice that this calculation is equivalent to multiplying each sample by 1/4 and summing.)


Table 11-13

Sample n IN[n] (V) OUT[n] (V) 1 0 0 2 0 0 3 0 0 4 0 5 10 6 10 7 10 8 10 9 10 10 10


Figure 11-41

In/Out 10 (volts) 8 6 4 2 0 1 2 3 4 5 6 7 8 9 10 n

Step by Step Answer:

Related Book For  answer-question

Digital Systems Principles And Application

ISBN: 9780134220130

12th Edition

Authors: Ronald Tocci, Neal Widmer, Gregory Moss

Question Posted: