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.

Analysis of A/D Quantization Noise 543<br />

Distribution of e 1<br />

Distribution of e 2<br />

4128<br />

3128<br />

2128<br />

1128<br />

4128<br />

3128<br />

2128<br />

1128<br />

SAMPLE SIZE N = 500000<br />

ROUNDED T0 B = 6 BITS<br />

MEAN = −4.1044e–006<br />

MIN PROB BAR HEIGHT = 0.007478<br />

MAX PROB BAR HEIGHT = 0.00814<br />

SIGMA = 0.0045076<br />

0<br />

−0.5 −0.375 −0.25 −0.125 0 0.125 0.25 0.375 0.5<br />

Normalized error e 1<br />

SAMPLE SIZE N = 500000<br />

ROUNDED T0 B = 6 BITS<br />

MEAN = −4.1044e–006<br />

MIN PROB BAR HEIGHT = 0.000112<br />

MAX PROB BAR HEIGHT = 0.01572<br />

SIGMA = 0.0031818<br />

0<br />

−0.5 −0.375 −0.25 −0.125 0 0.125 0.25 0.375 0.5<br />

Normalized error e 2<br />

FIGURE 10.4 Quantization error distribution for the sinusoidal signal in<br />

Example 10.1, B =6bits<br />

Figure 10.4, from which we observe that the quantization error sequence appears<br />

to satisfy the model assumptions for B ≥ 6 bits.<br />

□<br />

□ EXAMPLE 10.2 Let x(n) beanindependent and identically distributed random sequence whose<br />

samples are uniformly distributed over the [−1, 1] interval. Determine the error<br />

distributions for B = 2 and 6 bits.<br />

Solution<br />

We again choose 500,000 samples to minimize any statistical variations. The<br />

following MATLAB fragment computes the distributions for B =2bits.<br />

clear; close all;<br />

% Example parameters<br />

B = 2; N = 500000; xn = (2*rand(1,N)-1);<br />

% Quantization error analysis<br />

[H1,H2,Q, estat]] = StatModelR(xn,B,N); % Compute histograms<br />

H1max = max(H1); H1min = min(H1); % Max and Min of H1<br />

H2max = max(H2); H2min = min(H2); % Max and Min of H2<br />

The plots of the resulting histogram are shown in Figure 10.5. The corresponding<br />

plots for B =6bits are shown in Figure 10.6. From these plots we observe<br />

that even for B =2bits the quantization error samples are independent and<br />

uniformly distributed.<br />

□<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!