\documentclass{beamer}

\usepackage{svn}
\SVN $Id$%
\SVN $Date$%
\SVN $Author$%
\SVN $Revision$%
\SVN $HeadURL$%

\usetheme{Darmstadt}
\usefonttheme[onlylarge]{structurebold}
\setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}
%\usecolortheme[RGB={0,166,214}]{structure} % rgb values obtained from www.huisstijl.tudelft.nl
\usecolortheme[RGB={0,139,191}]{structure} % rgb values obtained from huisstijl.deltares.nl


% Standard packages

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}

% graphics
\usepackage{graphicx}
%\usepackage{subfigure}
\usepackage[update]{epstopdf}
\epstopdfsetup{
prefersuffix=false,
suffix=
} 

\graphicspath{{figures/},{code/}}% 

\usepackage[autolinebreaks,useliterate]{mcode} 

% Setup TikZ

\usepackage{tikz}
\usetikzlibrary{arrows,shapes.callouts,decorations.pathmorphing}
\tikzstyle{block}=[draw opacity=0.7,line width=1.4cm]


% Author, Title, etc.

\title[]{Probabilistic tools in OpenEarth}

\author[]{Kees den Heijer}

\institute[]{Delft University of Technology, Deltares}

\date[]{\today}

\logo{%
    \includegraphics[width=.2\textwidth]{tudlogo}~%
    \includegraphics[width=.2\textwidth]{DELTARESMERK-PANTONE}~%
    \includegraphics[width=.2\textwidth]{OpenEarth-logo-blurred-white-background-without-adress}%
}

% Use cover/uncover functionality for item lists
%\beamerdefaultoverlayspecification{<+->}

\begin{document}

\begin{frame}
  \titlepage
\end{frame}

\begin{frame}{Outline}
  \tableofcontents
\end{frame}

\section{Stochastic variables}

\begin{frame}{Stochastic variable}
Structure array

\vspace{1ex}

\begin{tabular}{lp{.7\textwidth}}
fieldname & description \\
\hline
\mcode{Name} & Unique name for each stochastic variable\\
\mcode{Distr} & Functionhandle of distribution function (e.g. \mcode{@norm_inv})\\
\mcode{Params} & Parameters in cell-array as input for the corresponding distribution function\\
%\mcode{propertyName} & Indicate how to parse variable to z-function\\

\end{tabular}
\end{frame}
\begin{frame}{Stochastic variable}
\includegraphics[height=.6\textheight]{stochastdef}

%    \begin{tikzpicture}[overlay,remember picture]
%        \pgftransformshift{\pgfpointanchor{current page}{center}}
%        \node[
%            ellipse callout,
%            draw=red,
%            ultra thick,
%            fill=yellow,
%            decoration=zigzag,
%            decorate,
%            callout relative pointer=(195:.35\textwidth),
%            text width=0.6\textwidth,
%            align=center,
%            anchor=center
%            ] at (.15\textwidth,.3\textheight) {Names are custom};
%    \end{tikzpicture}
\end{frame}

\begin{frame}{Plot stochastic variables}
\includegraphics[scale=.5]{c1stochasts}
\end{frame}

\begin{frame}{Probability distributions}
\includegraphics[width=\textwidth]{distributions}
\end{frame}

\section{Limit state function}
\begin{frame}{Limit state function}
\begin{itemize}
\item This should be created as a separate function
\item Input arguments: \\
\mcode{varargin} : \textit{propertyname-propertyvalue} pairs specifying the variable names and the corresponding vectors with samples
\item Output argument: \\
\mcode{z} : z-values corresponding to the x-values from the samples
\end{itemize}
\end{frame}
\begin{frame}{Limit state function}
\includegraphics[width=\textwidth]{zfunction}
\end{frame}

\section{Calculation method}
\begin{frame}{Run calculation}
\begin{itemize}
\item general
\begin{itemize}
\item Specify stochast with:\\ \mcode{'stochast', stochast_variable}
\item Specify z-function with:\\ \mcode{'x2zFunction', @your_custom_zfunction}
\end{itemize}
\item Monte Carlo
\begin{itemize}
\item Specify number of samples with:\\ \mcode{'NrSamples', 1e4}
\end{itemize}
\item Additional settings can be parsed as \textit{propertyname-propertyvalue} pairs
\end{itemize}
\end{frame}

\begin{frame}{Run calculation}
\includegraphics[height=.6\textheight]{runcalculation}
\end{frame}

%\subsection{Method specific settings}
\begin{frame}{FORM settings}
\includegraphics[width=\textwidth]{FORMdefaultsettings}
\end{frame}
\begin{frame}{Monte Carlo settings}
\includegraphics[width=\textwidth]{MCdefaultsettings}
\end{frame}

\section{Results}
\begin{frame}{Monte Carlo result}
\includegraphics[height=.3\textheight]{MCresult}

\end{frame}

\begin{frame}{Monte Carlo result settings}
\includegraphics[height=.5\textheight]{MCsettings}
\end{frame}

\begin{frame}{Monte Carlo result output}
\includegraphics[height=.5\textheight]{MCoutput}
\end{frame}

\begin{frame}{Histograms Monte Carlo}
\includegraphics[scale=.5]{c1MChist}
\end{frame}

\begin{frame}{Scatter Monte Carlo}
\includegraphics[height=.7\textheight]{c1MCscatter}
\end{frame}

\begin{frame}{FORM result}
\includegraphics[height=.3\textheight]{FORMresult}
\end{frame}

\begin{frame}{FORM result settings}
\includegraphics[height=.5\textheight]{FORMsettings}
\end{frame}

\begin{frame}{FORM result output}
\includegraphics[height=.6\textheight]{FORMoutput}
\end{frame}

\begin{frame}{FORM result designpoint}
\includegraphics[height=.4\textheight]{FORMdesignpoint}
\end{frame}

\begin{frame}{FORM}
\includegraphics[scale=.5]{c1FORM}
\end{frame}

\end{document}
