02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

540 Chapter 10 ROUND-OFF EFFECTS IN DIGITAL FILTERS<br />

These assumptions are reasonable in practice if the sequence x(n) issufficiently<br />

random to traverse many quantization steps in going from time<br />

n to n +1.<br />

10.1.2 ANALYSIS USING MATLAB<br />

To investigate the statistical properties of the error samples, we will have<br />

to generate a large number of these samples and plot their distribution<br />

using a histogram (or a probability bar graph). Furthermore, we have to<br />

design the sequence x(n) sothat its samples do not repeat; otherwise, the<br />

error samples will also repeat, which will result in an inaccurate analysis.<br />

This can be guaranteed either by choosing a well-defined aperiodic<br />

sequence or a random sequence.<br />

We will quantize x(n) using B-bit rounding operation. A similar implementation<br />

can be developed for the truncation operation. Since all<br />

three error characteristics are exactly the same under the rounding operation,<br />

we will choose the sign-magnitude format for ease in implementation.<br />

After quantization, the resulting error samples e(n) are uniformly<br />

distributed over the [− ∆ 2 , ∆ 2 ]interval. Let e 1(n) bethe normalized error<br />

given by<br />

e 1 (n) △ = e(n)<br />

∆ = e(n)2B ⇒ e 1 (n) ∈ [−1/2, 1/2] (10.2)<br />

Then e 1 (n)isuniform over the interval [− 1 2 , + 1 2<br />

], as shown in Figure 10.2a.<br />

Thus the histogram interval will be uniform across all B-bit values, which<br />

will make its computation and plotting easier. This interval will be divided<br />

into 128 bins for the purpose of plotting.<br />

To determine the sample independence we consider the histogram of<br />

the sequence<br />

e 2 (n) = △ e 1(n)+e 1 (n − 1)<br />

(10.3)<br />

2<br />

which is the average of two consecutive normalized error samples. If<br />

e 1 (n) is uniformly distributed between [−1/2, 1/2], then, for sample<br />

independence, e 2 (n) must have a triangle-shaped distribution between<br />

[−1/2, 1/2], as shown in Figure 10.2b. We will again generate a 128-<br />

bin histogram for e 2 (n). These steps are implemented in the following<br />

MATLAB function.<br />

f 1 (n)<br />

1 2<br />

f 2 (n)<br />

e 1 (n)<br />

−12 12 −12 12<br />

e 2 (n)<br />

FIGURE 10.2<br />

Probability distributions of the normalized errors e 1(n) and e 2(n)<br />

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).<br />

Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!