18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

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.

<strong>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

Table 5-5. Statistical Distribution Functions<br />

Name<br />

Arguments<br />

Function<br />

Mode<br />

Function Value<br />

beta.f<br />

e 1 , e 2 , i<br />

REAL<br />

Generates a beta-distributed REAL number with<br />

REAL, REAL,<br />

INTEGER<br />

e 1 = power of x,<br />

e 2 = power of (1 - x) using stream i<br />

binomial.f i 1 , e, i 2<br />

INTEGER,<br />

REAL,<br />

INTEGER<br />

INTEGER<br />

Generates the INTEGER number of successes in<br />

i 1 independent trials, each having probability of<br />

success using stream i 2 .<br />

erlang.f e, i 1 , i 2<br />

REAL<br />

INTEGER<br />

REAL<br />

REAL<br />

Generates an Erlang distributed REAL number<br />

with mean = e and k = i 1 using stream i 2 .<br />

exponential.f<br />

e, i<br />

REAL,<br />

INTEGER<br />

REAL<br />

Generates an exponentially distributed REAL<br />

number with mean = e using stream i.<br />

gamma.f<br />

e 1 , e 2 , i<br />

REAL,REAL,<br />

INTEGER<br />

REAL<br />

Generates a gamma-distributed REAL number<br />

with mean = 1 and k = e 2 using stream i.<br />

log.normal.f<br />

e 1 , e 2 , i<br />

REAL,REAL,<br />

INTEGER<br />

REAL<br />

Generates a log normally distributed REAL number<br />

with mean = e 1 and standard deviation = e 2<br />

using stream i.<br />

normal.f<br />

e 1 , e 2 , i<br />

REAL,REAL,<br />

INTEGER<br />

REAL<br />

Generates a normally distributed REAL number<br />

with mean =e 1 and standard deviation = e 2 using<br />

stream i.<br />

poisson.f<br />

e, i<br />

REAL,<br />

INTEGER<br />

INTEGER<br />

Generates a Poisson-distributed INTEGER number<br />

with mean = e using stream i.<br />

randi.f i 1 , i 2 , i 3<br />

INTEGER,<br />

INTEGER,<br />

INTEGER<br />

INTEGER<br />

Generates an INTEGER number uniformly distributed<br />

between i 1 and i 2 inclusive using<br />

stream i 3.<br />

triang.f e 1 , e 2 , e 3 ,<br />

i<br />

REAL,REAL,<br />

REAL,<br />

INTEGER<br />

REAL<br />

Generates a triangularly distributed REAL number<br />

with minimum = e 1 , mode = e 2 , and maximum<br />

= e 3 using stream i.<br />

uniform.f<br />

e 1 , e 2 , i<br />

REAL,REAL,<br />

INTEGER<br />

REAL<br />

Generates a uniformly distributed REAL number<br />

between e 1 and e 2 using stream i.<br />

216

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

Saved successfully!

Ooh no, something went wrong!