\section{NAG library functions}

The correspondence between the NAG library subroutines / functions and the distributions included in the Requirements specification document [requirement M10].

\subsection{Discrete distributions}

\begin{tabular}[]{| l l l |}
\hline
Distribution & Frequency & Generation \\
\hline
&& \\
Uniform distribution & (easy to calculate) & G05DYF \\
&& \\
Binomial distribution & G01BJF & G05EDF and G05EYF \\
&& \\
Geometric distribution &  &  \\
&& \\
Poisson distribution & G01BKF & G05DRF / G05ECF and G05EYF \\
\hline
\end{tabular}
\vspace{.5cm}

\subsection{Continuous distributions}

\begin{tabular}[]{| l l l |}
\hline
Distribution & Density & Generation \\
\hline
&& \\
Uniform distribution & (easy to calculate) & G05FAF \\
&& \\
Normal distribution &  & G05FDF \\
&& \\
Multinomial distribution &  & \\
&& \\
Exponential distribution &  & G05FBF \\
&& \\
Binormal distribution &  &  \\
&& \\
Lognormal distribution &  & G05DEF \\
&& \\
Gamma distribution &  & G05FFF \\
&& \\
Beta distribution & G01EEF & G05FEF \\
&& \\
Dirichlet distribution &  &  \\
\hline
\end{tabular}
\vspace{.5cm}


The distributions missing either generation or density/frequency subroutines will be left to the user, as it has been agreed with the customer (unlike specified in the SRS).
