14.02.2013 Views

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

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.

Appendix I / Utilities / General Utilities<br />

_ _<br />

( ( k ) + 1 ) ∈ { odd int egers } ⇒ S ( k + 1 ) : = S ( k ) + 1<br />

S12 0<br />

12<br />

22.2-6<br />

Equation 22.2-33<br />

( ( k ) + 1 ) ∈ { even int egers } ⇒ S ( k + 1 ) : = S ( k ) + 2<br />

S12 0<br />

12<br />

Equation 22.2-34<br />

If Monte-Carlo mode is invoked S0(2001) is written to an external ASCII<br />

file to be used as the Master Seed for the next program execution.<br />

22.2.4.2 Normal Distributed Variables<br />

When (M := 0) RANDOM using GAUSS to refresh the random seed in<br />

IRAND(N) and obtain the next value of (C) in the PRBS identified by (N)<br />

taken from the Gaussian distribution N(B,A),<br />

GAUSS<br />

22.2.4.3 Bi-modally Distributed Variables<br />

( IRAND ( N ) , A , B , C )<br />

Equation 22.2-35<br />

When (M := 1) RANDOM returns a value from a bi-modal distribution, i.e. a<br />

Gaussian distribution reflected about zero, with median values at (B) and a<br />

standard deviation about each of (A). Using N(B,A) there is a small but<br />

finite statistical probability at zero. The process is the same as for normally<br />

distributed variables, however,<br />

C : = C ⋅ sign<br />

22.2.4.4 Uniformly Distributed Variables<br />

( 1,<br />

SIGNV ( N ) )<br />

Equation 22.2-36<br />

When (M := 2) RANDOM uses UNIFORM to return a uniformly distributed<br />

random variable (C) in the range [A,B], whilst updating seed IRAND(N).<br />

UNIFORM<br />

( IRAND ( N ) , A , B , C , LUNOUT )<br />

Equation 22.2-37<br />

65539 ⋅ S i < 0 ⇒ S i + 1 : = 65539 ⋅ S i + 2147483648<br />

65539 : = 65539 ⋅ S<br />

⋅ S i ≥ 0 ⇒ S i + 1<br />

Equation 22.2-38<br />

i<br />

Equation 22.2-39

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

Saved successfully!

Ooh no, something went wrong!