28.11.2014 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Then to sample from f 1j (E), first let<br />

p = 2 1−j , E ′ = E/p . (2.113)<br />

We then relate the distributions of E and E ′ , as follows. Suppose ˆx, ŷ are random variables with<br />

probability density functions f(x) and g(y) and cumulative distribution functions F (x) and G(y).<br />

Further, suppose that ˆx is related to ŷ by<br />

with h monotonic increasing (↑) or decreasing (↓). Then clearly<br />

ˆx = h(ŷ) (2.114)<br />

F (x) = P r{ ˆx < x} = P r{ h(ŷ) < x}<br />

(<br />

)<br />

= P r{ ŷ < h −1 (x)} if h ↑, P r{ ŷ > h −1 (x)}<br />

(<br />

)<br />

= G(h −1 (x)) if h ↑, 1 − G(h −1 (x)) if h ↓ .<br />

(2.115)<br />

Letting<br />

x = h(y), y = h −1 (x) , (2.116)<br />

we have<br />

F (h(y)) = (G(y) if h ↑, 1 − G(y) if h ↓) . (2.117)<br />

Differentiating with respect to y, we obtain,<br />

f (h(y)) dh(y)<br />

dy<br />

= (g(y) if h ↑, −g(y) if h ↓) . (2.118)<br />

Now<br />

Hence<br />

dh(y)<br />

dy<br />

As an example, we claim that if<br />

g(E ′ ) = 1<br />

ln 2<br />

(∣ ∣ )<br />

∣∣∣ dh(y)<br />

∣∣∣<br />

=<br />

dy ∣ if h ↑, − dh(y)<br />

dy ∣ if h ↓ . (2.119)<br />

f (h(y)) = g(y)/<br />

dh(y)<br />

∣ dy ∣ , (2.120)<br />

( )/ ∣ f(x) = g h −1 ∣∣∣ dh(h −1 (x))<br />

(x)<br />

. (2.121)<br />

dy ∣<br />

( (<br />

1 if E ′ ∈ 0, 1 )<br />

,<br />

2<br />

1 − E ′<br />

E ′<br />

( )) 1<br />

if E ′ ∈<br />

2 , 1<br />

, (2.122)<br />

and<br />

then<br />

E = h(E ′ ) = E ′ p, E ′ = h −1 (E) = E/p,<br />

f(E) = 1 ( 1<br />

ln 2 p if E ∈ (0, p/2), 1 − E/p<br />

E<br />

dh(E ′ )<br />

dE ′ = p , (2.123)<br />

)<br />

if E ∈ (p/2, p)<br />

. (2.124)<br />

50

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

Saved successfully!

Ooh no, something went wrong!