\hypertarget{classMemDS}{
\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 
\hypertarget{classMemDS_23522b9e7dd0bb0c365cc9cde4c05449}{
void \hyperlink{classMemDS_23522b9e7dd0bb0c365cc9cde4c05449}{getdata} (vec \&dt)}
\label{classMemDS_23522b9e7dd0bb0c365cc9cde4c05449}

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

\begin{CompactList}\small\item\em Returns data records at indeces. \item\end{CompactList}\item 
void \hyperlink{classMemDS_5f72b555e0e4a61de1440c457cf57007}{linkrvs} (\hyperlink{classRV}{RV} \&drv, \hyperlink{classRV}{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 
\hypertarget{classMemDS_b120ed178f7c848f1227c928d8a79be8}{
void \hyperlink{classMemDS_b120ed178f7c848f1227c928d8a79be8}{write} (vec \&ut)}
\label{classMemDS_b120ed178f7c848f1227c928d8a79be8}

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

\begin{CompactList}\small\item\em Accepts action variables at specific indeces. \item\end{CompactList}\item 
\hypertarget{classMemDS_21916feb3e5ff960855c09b06a0d279b}{
void \hyperlink{classMemDS_21916feb3e5ff960855c09b06a0d279b}{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 
\hypertarget{classMemDS_84cfba80cb32d07be94690658175e9c4}{
\hyperlink{classMemDS_84cfba80cb32d07be94690658175e9c4}{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 
\hypertarget{classDS_1012025a1a3a1fdd24aa48698a3d3454}{
\hyperlink{classRV}{RV} \hyperlink{classDS_1012025a1a3a1fdd24aa48698a3d3454}{Drv}}
\label{classDS_1012025a1a3a1fdd24aa48698a3d3454}

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

\begin{CompactList}\small\item\em Action variables, accepted by {\tt \hyperlink{classDS_0dfb6788b70c0d48a1f5276ed6c93039}{write()}}. \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}
\hypertarget{classMemDS_5f72b555e0e4a61de1440c457cf57007}{
\index{MemDS@{MemDS}!linkrvs@{linkrvs}}
\index{linkrvs@{linkrvs}!MemDS@{MemDS}}
\subsubsection[linkrvs]{\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 \hyperlink{classDS_9a35ca9c9321dce2bf63bf668f785b75}{DS}.

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

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