root/doc/latex/classRV.tex @ 174

Revision 172, 10.0 kB (checked in by smidl, 16 years ago)

Latex doc

  • Property svn:eol-style set to native
Line 
1\hypertarget{classRV}{
2\section{RV Class Reference}
3\label{classRV}\index{RV@{RV}}
4}
5Class representing variables, most often random variables. 
6
7
8{\tt \#include $<$libBM.h$>$}
9
10\subsection*{Public Member Functions}
11\begin{CompactItemize}
12\item 
13\hypertarget{classRV_bedfd8d197f0a7ac28a4d412dfc5b8af}{
14\hyperlink{classRV_bedfd8d197f0a7ac28a4d412dfc5b8af}{RV} (Array$<$ std::string $>$ in\_\-names, ivec in\_\-sizes, ivec in\_\-times)}
15\label{classRV_bedfd8d197f0a7ac28a4d412dfc5b8af}
16
17\begin{CompactList}\small\item\em Full constructor. \item\end{CompactList}\item 
18\hypertarget{classRV_7b88a74204fdf044e02f2807769839b7}{
19\hyperlink{classRV_7b88a74204fdf044e02f2807769839b7}{RV} (Array$<$ std::string $>$ in\_\-names, ivec in\_\-sizes)}
20\label{classRV_7b88a74204fdf044e02f2807769839b7}
21
22\begin{CompactList}\small\item\em Constructor with times=0. \item\end{CompactList}\item 
23\hypertarget{classRV_261702f85831392d7d67e2bcf0b69960}{
24\hyperlink{classRV_261702f85831392d7d67e2bcf0b69960}{RV} (Array$<$ std::string $>$ in\_\-names)}
25\label{classRV_261702f85831392d7d67e2bcf0b69960}
26
27\begin{CompactList}\small\item\em Constructor with sizes=1, times=0. \item\end{CompactList}\item 
28\hypertarget{classRV_6a22f5c06d6403870d4e414b1993bf9e}{
29\hyperlink{classRV_6a22f5c06d6403870d4e414b1993bf9e}{RV} ()}
30\label{classRV_6a22f5c06d6403870d4e414b1993bf9e}
31
32\begin{CompactList}\small\item\em Constructor of empty \hyperlink{classRV}{RV}. \item\end{CompactList}\item 
33\hypertarget{classRV_f5c7b8bd589eef09ccdf3329a0addea0}{
34int \hyperlink{classRV_f5c7b8bd589eef09ccdf3329a0addea0}{count} () const }
35\label{classRV_f5c7b8bd589eef09ccdf3329a0addea0}
36
37\begin{CompactList}\small\item\em Return number of scalars in the \hyperlink{classRV}{RV}. \item\end{CompactList}\item 
38\hypertarget{classRV_c114a6f3ff06796cc2f4dacba74291eb}{
39int \hyperlink{classRV_c114a6f3ff06796cc2f4dacba74291eb}{length} () const }
40\label{classRV_c114a6f3ff06796cc2f4dacba74291eb}
41
42\begin{CompactList}\small\item\em Return length (number of entries) of the \hyperlink{classRV}{RV}. \item\end{CompactList}\item 
43ivec \hyperlink{classRV_0c493a7a897f4d75682f4264e40779a1}{findself} (const \hyperlink{classRV}{RV} \&rv2) const
44\begin{CompactList}\small\item\em Find indexes of self in another rv,. \item\end{CompactList}\item 
45\hypertarget{classRV_82cc7fa22ce91cf461a522ad62014c65}{
46bool \hyperlink{classRV_82cc7fa22ce91cf461a522ad62014c65}{equal} (const \hyperlink{classRV}{RV} \&rv2) const }
47\label{classRV_82cc7fa22ce91cf461a522ad62014c65}
48
49\begin{CompactList}\small\item\em Compare if {\tt rv2} is identical to this {\tt \hyperlink{classRV}{RV}}. \item\end{CompactList}\item 
50bool \hyperlink{classRV_935790526b630dec4ffefa9ec0c2b6fb}{add} (const \hyperlink{classRV}{RV} \&rv2)
51\begin{CompactList}\small\item\em Add (concat) another variable to the current one,. \item\end{CompactList}\item 
52\hypertarget{classRV_a85c47bd838ebbdcb6798d7843e87db2}{
53\hyperlink{classRV}{RV} \hyperlink{classRV_a85c47bd838ebbdcb6798d7843e87db2}{subt} (const \hyperlink{classRV}{RV} rv2) const }
54\label{classRV_a85c47bd838ebbdcb6798d7843e87db2}
55
56\begin{CompactList}\small\item\em Subtract another variable from the current one. \item\end{CompactList}\item 
57\hypertarget{classRV_0a9ea7bc6fad270cc54a455a9f8f387d}{
58\hyperlink{classRV}{RV} \hyperlink{classRV_0a9ea7bc6fad270cc54a455a9f8f387d}{subselect} (ivec ind) const }
59\label{classRV_0a9ea7bc6fad270cc54a455a9f8f387d}
60
61\begin{CompactList}\small\item\em Select only variables at indeces ind. \item\end{CompactList}\item 
62\hypertarget{classRV_65e5b820e482caff7f284d11898ef64f}{
63\hyperlink{classRV}{RV} \hyperlink{classRV_65e5b820e482caff7f284d11898ef64f}{operator()} (ivec ind) const }
64\label{classRV_65e5b820e482caff7f284d11898ef64f}
65
66\begin{CompactList}\small\item\em Select only variables at indeces ind. \item\end{CompactList}\item 
67\hypertarget{classRV_e0a158d53ab9430627241f844f4c9a60}{
68void \hyperlink{classRV_e0a158d53ab9430627241f844f4c9a60}{t} (int delta)}
69\label{classRV_e0a158d53ab9430627241f844f4c9a60}
70
71\begin{CompactList}\small\item\em Shift {\tt time} shifted by delta. \item\end{CompactList}\item 
72\hypertarget{classRV_52f3ade796814da627ff5a44d00986be}{
73\hyperlink{classstr}{str} \hyperlink{classRV_52f3ade796814da627ff5a44d00986be}{tostr} () const }
74\label{classRV_52f3ade796814da627ff5a44d00986be}
75
76\begin{CompactList}\small\item\em generate {\tt \hyperlink{classstr}{str}} from rv, by expanding sizes \item\end{CompactList}\item 
77ivec \hyperlink{classRV_1844ea0d9c10428f5e0ee1d4d569ef0a}{dataind} (\hyperlink{classRV}{RV} crv) const
78\begin{CompactList}\small\item\em generate indeces into \item\end{CompactList}\item 
79\hypertarget{classRV_b88ef5124713c9e30fd9446846b3f044}{
80Array$<$ std::string $>$ \& \hyperlink{classRV_b88ef5124713c9e30fd9446846b3f044}{\_\-names} ()}
81\label{classRV_b88ef5124713c9e30fd9446846b3f044}
82
83\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
84\hypertarget{classRV_4a0069bc69f5a98d7ce9ed59077f2e6c}{
85int \hyperlink{classRV_4a0069bc69f5a98d7ce9ed59077f2e6c}{id} (int at)}
86\label{classRV_4a0069bc69f5a98d7ce9ed59077f2e6c}
87
88\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
89\hypertarget{classRV_20db23a5585d64a6e24404cc8379bc28}{
90int \hyperlink{classRV_20db23a5585d64a6e24404cc8379bc28}{size} (int at)}
91\label{classRV_20db23a5585d64a6e24404cc8379bc28}
92
93\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
94\hypertarget{classRV_af068cf478864fe1a4fbfc6b4693b088}{
95int \hyperlink{classRV_af068cf478864fe1a4fbfc6b4693b088}{time} (int at)}
96\label{classRV_af068cf478864fe1a4fbfc6b4693b088}
97
98\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
99\hypertarget{classRV_3ae4dd6e368f814a02710636ac8e1721}{
100std::string \hyperlink{classRV_3ae4dd6e368f814a02710636ac8e1721}{name} (int at)}
101\label{classRV_3ae4dd6e368f814a02710636ac8e1721}
102
103\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
104\hypertarget{classRV_fc4a3175ff678cba7ae4109654f66ce5}{
105void \hyperlink{classRV_fc4a3175ff678cba7ae4109654f66ce5}{newids} ()}
106\label{classRV_fc4a3175ff678cba7ae4109654f66ce5}
107
108\begin{CompactList}\small\item\em Assign unused ids to this rv. \item\end{CompactList}\end{CompactItemize}
109\subsection*{Protected Attributes}
110\begin{CompactItemize}
111\item 
112\hypertarget{classRV_f2396efe2e6d656ebe9e6f06018cbe25}{
113int \hyperlink{classRV_f2396efe2e6d656ebe9e6f06018cbe25}{tsize}}
114\label{classRV_f2396efe2e6d656ebe9e6f06018cbe25}
115
116\begin{CompactList}\small\item\em size = sum of sizes \item\end{CompactList}\item 
117\hypertarget{classRV_0d7b36e2bbccf880c8fcf1e8cc43c1a9}{
118int \hyperlink{classRV_0d7b36e2bbccf880c8fcf1e8cc43c1a9}{len}}
119\label{classRV_0d7b36e2bbccf880c8fcf1e8cc43c1a9}
120
121\begin{CompactList}\small\item\em len = number of individual rvs \item\end{CompactList}\item 
122\hypertarget{classRV_1bd7165140f4b880a7f344bbb1c433f9}{
123ivec \hyperlink{classRV_1bd7165140f4b880a7f344bbb1c433f9}{ids}}
124\label{classRV_1bd7165140f4b880a7f344bbb1c433f9}
125
126\begin{CompactList}\small\item\em Vector of unique IDs. \item\end{CompactList}\item 
127\hypertarget{classRV_c878aab13f34b420e1eb5b485563682b}{
128ivec \hyperlink{classRV_c878aab13f34b420e1eb5b485563682b}{sizes}}
129\label{classRV_c878aab13f34b420e1eb5b485563682b}
130
131\begin{CompactList}\small\item\em Vector of sizes. \item\end{CompactList}\item 
132\hypertarget{classRV_646e530c47a2dd38254b778d9f11ac89}{
133ivec \hyperlink{classRV_646e530c47a2dd38254b778d9f11ac89}{times}}
134\label{classRV_646e530c47a2dd38254b778d9f11ac89}
135
136\begin{CompactList}\small\item\em Vector of shifts from current time. \item\end{CompactList}\item 
137\hypertarget{classRV_df5d0030b277a1db2f1fd5fb79152acb}{
138Array$<$ std::string $>$ \hyperlink{classRV_df5d0030b277a1db2f1fd5fb79152acb}{names}}
139\label{classRV_df5d0030b277a1db2f1fd5fb79152acb}
140
141\begin{CompactList}\small\item\em Array of names. \item\end{CompactList}\end{CompactItemize}
142\subsection*{Friends}
143\begin{CompactItemize}
144\item 
145\hypertarget{classRV_cad6f15535d10437f6690cb4492176a8}{
146std::ostream \& \hyperlink{classRV_cad6f15535d10437f6690cb4492176a8}{operator$<$$<$} (std::ostream \&os, const \hyperlink{classRV}{RV} \&rv)}
147\label{classRV_cad6f15535d10437f6690cb4492176a8}
148
149\begin{CompactList}\small\item\em Printing output e.g. for debugging. \item\end{CompactList}\end{CompactItemize}
150
151
152\subsection{Detailed Description}
153Class representing variables, most often random variables.
154
155More?...
156
157\subsection{Member Function Documentation}
158\hypertarget{classRV_0c493a7a897f4d75682f4264e40779a1}{
159\index{RV@{RV}!findself@{findself}}
160\index{findself@{findself}!RV@{RV}}
161\subsubsection[findself]{\setlength{\rightskip}{0pt plus 5cm}ivec RV::findself (const {\bf RV} \& {\em rv2}) const}}
162\label{classRV_0c493a7a897f4d75682f4264e40779a1}
163
164
165Find indexes of self in another rv,.
166
167\begin{Desc}
168\item[Returns:]ivec of the same size as self. \end{Desc}
169
170
171References ids, len, length(), and times.
172
173Referenced by add(), and subt().\hypertarget{classRV_935790526b630dec4ffefa9ec0c2b6fb}{
174\index{RV@{RV}!add@{add}}
175\index{add@{add}!RV@{RV}}
176\subsubsection[add]{\setlength{\rightskip}{0pt plus 5cm}bool RV::add (const {\bf RV} \& {\em rv2})}}
177\label{classRV_935790526b630dec4ffefa9ec0c2b6fb}
178
179
180Add (concat) another variable to the current one,.
181
182\begin{Desc}
183\item[Returns:]true if all rv2 were added, false if rv2 is in conflict \end{Desc}
184
185
186References findself(), ids, len, names, sizes, times, and tsize.
187
188Referenced by concat(), MPF$<$ BM\_\-T $>$::MPF(), and mprod::mprod().\hypertarget{classRV_1844ea0d9c10428f5e0ee1d4d569ef0a}{
189\index{RV@{RV}!dataind@{dataind}}
190\index{dataind@{dataind}!RV@{RV}}
191\subsubsection[dataind]{\setlength{\rightskip}{0pt plus 5cm}ivec RV::dataind ({\bf RV} {\em crv}) const}}
192\label{classRV_1844ea0d9c10428f5e0ee1d4d569ef0a}
193
194
195generate indeces into
196
197\begin{Desc}
198\item[Parameters:]
199\begin{description}
200\item[{\em crv}]data vector that form data vector of self. \end{description}
201\end{Desc}
202
203
204References count(), ids, str::ids, len, times, str::times, and tostr().
205
206The documentation for this class was generated from the following files:\begin{CompactItemize}
207\item 
208work/git/mixpp/bdm/stat/\hyperlink{libBM_8h}{libBM.h}\item 
209work/git/mixpp/bdm/stat/libBM.cpp\end{CompactItemize}
Note: See TracBrowser for help on using the browser.