File: drivers.tex

package info (click to toggle)
spooles 2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,012 kB
  • sloc: ansic: 146,834; csh: 3,615; makefile: 2,040; perl: 74
file content (47 lines) | stat: -rw-r--r-- 1,580 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
\par
\section{Driver programs for the {\tt Drand} object}
\label{section:Drand:drivers}
\par
This section contains brief descriptions of the driver programs.
\par
%=======================================================================
\begin{enumerate}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
testDrand msglvl msgFile distribution param1 param2 seed1 seed2 n
\end{verbatim}
This driver program test the {\tt Drand} random number generator.
\par
\begin{itemize}
\item
The {\tt msglvl} parameter determines the amount of output.
\item
The {\tt msgFile} parameter determines the message file --- if {\tt
msgFile} is {\tt stdout}, then the message file is {\it stdout},
otherwise a file is opened with {\it append} status to receive any
output data.
\item
The {\tt distribution} parameter specifies the mode of the object.
If {\tt 1}, the distribution is uniform.
If {\tt 2}, the distribution is normal.
\item
When {\tt distribution = 1}, {\tt param1} is the lower bound for
the interval.
When {\tt distribution = 2}, {\tt param1} is the mean for the
normal distribution.
\item
When {\tt distribution = 1}, {\tt param2} is the upper bound for
the interval.
When {\tt distribution = 2}, {\tt param2} is the variance for the
normal distribution.
\item
{\tt seed1} is the first random number seed.
\item
{\tt seed2} is the second random number seed.
\item
{\tt n} is the length of the vector of random numbers to be
generated.
\end{itemize}
%-----------------------------------------------------------------------
\end{enumerate}