\section{MemDS Class Reference}
\label{classMemDS}\index{MemDS@{MemDS}}
Class representing off-line data stored in memory.  


{\tt \#include $<$libDS.h$>$}

Inheritance diagram for MemDS:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=47pt]{classMemDS__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for MemDS:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=47pt]{classMemDS__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
void {\bf getdata} (vec \&dt)\label{classMemDS_23522b9e7dd0bb0c365cc9cde4c05449}

\begin{CompactList}\small\item\em Returns full vector of observed data. \item\end{CompactList}\item 
void {\bf getdata} (vec \&dt, ivec \&indeces)\label{classMemDS_900f1e1c9eb950f87e557c068628e60e}

\begin{CompactList}\small\item\em Returns data records at indeces. \item\end{CompactList}\item 
void {\bf linkrvs} ({\bf RV} \&drv, {\bf RV} \&urv)
\begin{CompactList}\small\item\em Method that assigns random variables to the datasource. Typically, the datasource will be constructed without knowledge of random variables. This method will associate existing variables with RVs. \item\end{CompactList}\item 
void {\bf write} (vec \&ut)\label{classMemDS_b120ed178f7c848f1227c928d8a79be8}

\begin{CompactList}\small\item\em Accepts action variable and schedule it for application. \item\end{CompactList}\item 
void {\bf write} (vec \&ut, ivec \&indexes)\label{classMemDS_6279bf18d44343750747ecc12e050f09}

\begin{CompactList}\small\item\em Accepts action variables at specific indeces. \item\end{CompactList}\item 
void {\bf step} ()\label{classMemDS_21916feb3e5ff960855c09b06a0d279b}

\begin{CompactList}\small\item\em Moves from $t$ to $t+1$, i.e. perfroms the actions and reads response of the system. \item\end{CompactList}\item 
{\bf MemDS} (mat \&Dat, ivec \&rowid, ivec \&delays)\label{classMemDS_84cfba80cb32d07be94690658175e9c4}

\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf RV} {\bf Drv}\label{classDS_1012025a1a3a1fdd24aa48698a3d3454}

\begin{CompactList}\small\item\em Observed variables, returned by {\tt \doxyref{getdata()}{p.}{classDS_db2dacc9e71a36eeb9c5c2ee402eeeb1}}. \item\end{CompactList}\item 
{\bf RV} {\bf Urv}\label{classDS_0a88ffaeb3c7c2cf30c69bc41a000629}

\begin{CompactList}\small\item\em Action variables, accepted by {\tt \doxyref{write()}{p.}{classDS_0dfb6788b70c0d48a1f5276ed6c93039}}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Class representing off-line data stored in memory. 

The data are stored in an internal matrix {\tt Data} . Each column of Data corresponds to one discrete time observation $t$. Access to this matrix is via indexes {\tt rowid} and {\tt delays}.

The data can be loaded from a file. 

\subsection{Member Function Documentation}
\index{MemDS@{MemDS}!linkrvs@{linkrvs}}
\index{linkrvs@{linkrvs}!MemDS@{MemDS}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void MemDS::linkrvs ({\bf RV} \& {\em drv}, \/  {\bf RV} \& {\em urv})}\label{classMemDS_5f72b555e0e4a61de1440c457cf57007}


Method that assigns random variables to the datasource. Typically, the datasource will be constructed without knowledge of random variables. This method will associate existing variables with RVs. 

(Inherited from m3k, may be deprecated soon). 

Reimplemented from {\bf DS} \doxyref{}{p.}{classDS_9a35ca9c9321dce2bf63bf668f785b75}.

References RV::count(), DS::Drv, and DS::Urv.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
work/mixpp/bdm/stat/{\bf libDS.h}\item 
work/mixpp/bdm/stat/libDS.cpp\end{CompactItemize}
