17 | | Collaboration diagram for bdm::RV:\nopagebreak |
18 | | \begin{figure}[H] |
19 | | \begin{center} |
20 | | \leavevmode |
21 | | \includegraphics[width=64pt]{classbdm_1_1RV__coll__graph} |
| 14 | |
| 15 | |
| 16 | \subsection{Detailed Description} |
| 17 | Class representing variables, most often random variables. |
| 18 | |
| 19 | The purpose of this class is to decribe a vector of data. Such description is used for connecting various vectors between each other, see class \hyperlink{classbdm_1_1datalink}{datalink}. |
| 20 | |
| 21 | The class is implemented using global variables to assure uniqueness of description: |
| 22 | |
| 23 | In is a vector \begin{center} |
| 24 | \begin{ImageNoCaption}\mbox{\includegraphics{inline_dotgraph_1}} |
| 25 | \end{ImageNoCaption} |
23 | | \end{figure} |
| 27 | \subsection*{Access functions} |
| 28 | \begin{CompactItemize} |
| 29 | \item |
| 30 | \hypertarget{classbdm_1_1RV_de30156104f61d86c94f758861418089}{ |
| 31 | int \textbf{\_\-dsize} () const } |
| 32 | \label{classbdm_1_1RV_de30156104f61d86c94f758861418089} |
| 33 | |
| 34 | \item |
| 35 | \hypertarget{classbdm_1_1RV_39f9b44752376f07e346579b5ff8cbbd}{ |
| 36 | int \hyperlink{classbdm_1_1RV_39f9b44752376f07e346579b5ff8cbbd}{countsize} () const } |
| 37 | \label{classbdm_1_1RV_39f9b44752376f07e346579b5ff8cbbd} |
| 38 | |
| 39 | \begin{CompactList}\small\item\em Recount size of the corresponding data vector. \item\end{CompactList}\item |
| 40 | \hypertarget{classbdm_1_1RV_e9ec8c3e756651ff352ab5e3d3acda4b}{ |
| 41 | int \textbf{length} () const } |
| 42 | \label{classbdm_1_1RV_e9ec8c3e756651ff352ab5e3d3acda4b} |
| 43 | |
| 44 | \item |
| 45 | \hypertarget{classbdm_1_1RV_5900b42f778129a9e56008a1e8e489c8}{ |
| 46 | int \textbf{id} (int at) const } |
| 47 | \label{classbdm_1_1RV_5900b42f778129a9e56008a1e8e489c8} |
| 48 | |
| 49 | \item |
| 50 | \hypertarget{classbdm_1_1RV_bde62551a3fc8f3f83c569860b73f705}{ |
| 51 | int \textbf{size} (int at) const } |
| 52 | \label{classbdm_1_1RV_bde62551a3fc8f3f83c569860b73f705} |
| 53 | |
| 54 | \item |
| 55 | \hypertarget{classbdm_1_1RV_c94373d3a760919b4b3eee58b42e3a45}{ |
| 56 | int \textbf{time} (int at) const } |
| 57 | \label{classbdm_1_1RV_c94373d3a760919b4b3eee58b42e3a45} |
| 58 | |
| 59 | \item |
| 60 | \hypertarget{classbdm_1_1RV_74c6ec8eb9c1dd69ad1d986eaee16dc2}{ |
| 61 | std::string \textbf{name} (int at) const } |
| 62 | \label{classbdm_1_1RV_74c6ec8eb9c1dd69ad1d986eaee16dc2} |
| 63 | |
| 64 | \item |
| 65 | \hypertarget{classbdm_1_1RV_fb2892d12dc978549e9491aed327dfd4}{ |
| 66 | void \textbf{set\_\-time} (int at, int time0)} |
| 67 | \label{classbdm_1_1RV_fb2892d12dc978549e9491aed327dfd4} |
| 68 | |
| 69 | \item |
| 70 | \hypertarget{classbdm_1_1RV_cad6f15535d10437f6690cb4492176a8}{ |
| 71 | std::ostream \& \hyperlink{classbdm_1_1RV_cad6f15535d10437f6690cb4492176a8}{operator$<$$<$} (std::ostream \&os, const \hyperlink{classbdm_1_1RV}{RV} \&rv)} |
| 72 | \label{classbdm_1_1RV_cad6f15535d10437f6690cb4492176a8} |
| 73 | |
| 74 | \begin{CompactList}\small\item\em Printing output e.g. for debugging. \item\end{CompactList}\end{CompactItemize} |
47 | | \hypertarget{classbdm_1_1RV_53b30f0c148b18e0aa20cc83548ed0c4}{ |
48 | | \hyperlink{classbdm_1_1RV_53b30f0c148b18e0aa20cc83548ed0c4}{RV} (string name, int id, int sz=1, int tm=0)} |
49 | | \label{classbdm_1_1RV_53b30f0c148b18e0aa20cc83548ed0c4} |
50 | | |
51 | | \begin{CompactList}\small\item\em Constructor of a single \hyperlink{classbdm_1_1RV}{RV} with given id. \item\end{CompactList}\item |
52 | | \hypertarget{classbdm_1_1RV_2174751a00ce19f941edd2c1a861be67}{ |
53 | | int \hyperlink{classbdm_1_1RV_2174751a00ce19f941edd2c1a861be67}{count} () const } |
54 | | \label{classbdm_1_1RV_2174751a00ce19f941edd2c1a861be67} |
55 | | |
56 | | \begin{CompactList}\small\item\em Return number of scalars in the \hyperlink{classbdm_1_1RV}{RV}. \item\end{CompactList}\item |
57 | | \hypertarget{classbdm_1_1RV_e9ec8c3e756651ff352ab5e3d3acda4b}{ |
58 | | int \hyperlink{classbdm_1_1RV_e9ec8c3e756651ff352ab5e3d3acda4b}{length} () const } |
59 | | \label{classbdm_1_1RV_e9ec8c3e756651ff352ab5e3d3acda4b} |
60 | | |
61 | | \begin{CompactList}\small\item\em Return length (number of entries) of the \hyperlink{classbdm_1_1RV}{RV}. \item\end{CompactList}\item |
| 99 | \hypertarget{classbdm_1_1RV_a990e0f30c0e34f04c14260ab8ba5b5f}{ |
| 100 | \hyperlink{classbdm_1_1RV_a990e0f30c0e34f04c14260ab8ba5b5f}{RV} (string name, int sz, int tm=0)} |
| 101 | \label{classbdm_1_1RV_a990e0f30c0e34f04c14260ab8ba5b5f} |
| 102 | |
| 103 | \begin{CompactList}\small\item\em Constructor of a single \hyperlink{classbdm_1_1RV}{RV} with given id. \item\end{CompactList}\end{CompactItemize} |
| 104 | \end{Indent} |
| 105 | \begin{Indent}{\bf Algebra on Random Variables}\par |
| 106 | \begin{CompactItemize} |
| 107 | \item |
104 | | \begin{CompactList}\small\item\em Minimum time-offset. \item\end{CompactList}\item |
105 | | \hypertarget{classbdm_1_1RV_ae0c6e729851a43c82a5b1c199474ef2}{ |
106 | | Array$<$ std::string $>$ \& \hyperlink{classbdm_1_1RV_ae0c6e729851a43c82a5b1c199474ef2}{\_\-names} ()} |
107 | | \label{classbdm_1_1RV_ae0c6e729851a43c82a5b1c199474ef2} |
108 | | |
109 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
110 | | \hypertarget{classbdm_1_1RV_172390b8525ef5aac684228241fff7b5}{ |
111 | | int \hyperlink{classbdm_1_1RV_172390b8525ef5aac684228241fff7b5}{id} (int at)} |
112 | | \label{classbdm_1_1RV_172390b8525ef5aac684228241fff7b5} |
113 | | |
114 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
115 | | \hypertarget{classbdm_1_1RV_8e64d02005a02aef72f214286977d8de}{ |
116 | | int \hyperlink{classbdm_1_1RV_8e64d02005a02aef72f214286977d8de}{size} (int at)} |
117 | | \label{classbdm_1_1RV_8e64d02005a02aef72f214286977d8de} |
118 | | |
119 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
120 | | \hypertarget{classbdm_1_1RV_aff4de8185750b506492623847520518}{ |
121 | | int \hyperlink{classbdm_1_1RV_aff4de8185750b506492623847520518}{time} (int at)} |
122 | | \label{classbdm_1_1RV_aff4de8185750b506492623847520518} |
123 | | |
124 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
125 | | \hypertarget{classbdm_1_1RV_d05af87595cfb7fa2e0fadeae5597fa8}{ |
126 | | std::string \hyperlink{classbdm_1_1RV_d05af87595cfb7fa2e0fadeae5597fa8}{name} (int at)} |
127 | | \label{classbdm_1_1RV_d05af87595cfb7fa2e0fadeae5597fa8} |
128 | | |
129 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
130 | | \hypertarget{classbdm_1_1RV_602cea0aecebc5146d81657df5127543}{ |
131 | | void \hyperlink{classbdm_1_1RV_602cea0aecebc5146d81657df5127543}{set\_\-id} (int at, int id0)} |
132 | | \label{classbdm_1_1RV_602cea0aecebc5146d81657df5127543} |
133 | | |
134 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
135 | | \hypertarget{classbdm_1_1RV_0b2c9e73ff66847c3644ebc3eb559a03}{ |
136 | | void \hyperlink{classbdm_1_1RV_0b2c9e73ff66847c3644ebc3eb559a03}{set\_\-size} (int at, int size0)} |
137 | | \label{classbdm_1_1RV_0b2c9e73ff66847c3644ebc3eb559a03} |
138 | | |
139 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
140 | | \hypertarget{classbdm_1_1RV_fb2892d12dc978549e9491aed327dfd4}{ |
141 | | void \hyperlink{classbdm_1_1RV_fb2892d12dc978549e9491aed327dfd4}{set\_\-time} (int at, int time0)} |
142 | | \label{classbdm_1_1RV_fb2892d12dc978549e9491aed327dfd4} |
143 | | |
144 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
145 | | \hypertarget{classbdm_1_1RV_176e9c0c35b51fee0ad8813a39883a63}{ |
146 | | void \hyperlink{classbdm_1_1RV_176e9c0c35b51fee0ad8813a39883a63}{newids} ()} |
147 | | \label{classbdm_1_1RV_176e9c0c35b51fee0ad8813a39883a63} |
148 | | |
149 | | \begin{CompactList}\small\item\em Assign unused ids to this rv. \item\end{CompactList}\end{CompactItemize} |
| 154 | \begin{CompactList}\small\item\em Minimum time-offset. \item\end{CompactList}\end{CompactItemize} |
| 155 | \end{Indent} |
153 | | \hypertarget{classbdm_1_1RV_38203096d950671def44de8cf1c6bb2e}{ |
154 | | int \hyperlink{classbdm_1_1RV_38203096d950671def44de8cf1c6bb2e}{tsize}} |
155 | | \label{classbdm_1_1RV_38203096d950671def44de8cf1c6bb2e} |
156 | | |
157 | | \begin{CompactList}\small\item\em size = sum of sizes \item\end{CompactList}\item |
| 159 | \hypertarget{classbdm_1_1RV_0cfe477965243a89eb87a06b024e2fcb}{ |
| 160 | int \hyperlink{classbdm_1_1RV_0cfe477965243a89eb87a06b024e2fcb}{dsize}} |
| 161 | \label{classbdm_1_1RV_0cfe477965243a89eb87a06b024e2fcb} |
| 162 | |
| 163 | \begin{CompactList}\small\item\em size of the data vector \item\end{CompactList}\item |
177 | | \begin{CompactList}\small\item\em Vector of shifts from current time. \item\end{CompactList}\item |
178 | | \hypertarget{classbdm_1_1RV_9a87c46918c3c0db0bdca854a48a44aa}{ |
179 | | Array$<$ std::string $>$ \hyperlink{classbdm_1_1RV_9a87c46918c3c0db0bdca854a48a44aa}{names}} |
180 | | \label{classbdm_1_1RV_9a87c46918c3c0db0bdca854a48a44aa} |
181 | | |
182 | | \begin{CompactList}\small\item\em Array of names. \item\end{CompactList}\end{CompactItemize} |
183 | | \subsection*{Friends} |
184 | | \begin{CompactItemize} |
185 | | \item |
186 | | \hypertarget{classbdm_1_1RV_cad6f15535d10437f6690cb4492176a8}{ |
187 | | std::ostream \& \hyperlink{classbdm_1_1RV_cad6f15535d10437f6690cb4492176a8}{operator$<$$<$} (std::ostream \&os, const \hyperlink{classbdm_1_1RV}{RV} \&rv)} |
188 | | \label{classbdm_1_1RV_cad6f15535d10437f6690cb4492176a8} |
189 | | |
190 | | \begin{CompactList}\small\item\em Printing output e.g. for debugging. \item\end{CompactList}\end{CompactItemize} |
191 | | |
192 | | |
193 | | \subsection{Detailed Description} |
194 | | Class representing variables, most often random variables. |
195 | | |
196 | | More?... |
| 178 | \begin{CompactList}\small\item\em Vector of shifts from current time. \item\end{CompactList}\end{CompactItemize} |
| 179 | |
227 | | References bdm::concat(), findself(), ids, len, names, sizes, times, and tsize. |
228 | | |
229 | | Referenced by UIArxDS::build(), UIARX::build(), bdm::concat(), bdm::compositepdf::getrv(), bdm::merger::merger(), bdm::MPF$<$ BM\_\-T $>$::MPF(), and bdm::compositepdf::setrvc().\hypertarget{classbdm_1_1RV_cbebdb5e0d30101a6eb63550ef701c55}{ |
| 210 | References bdm::concat(), countsize(), dsize, findself(), ids, len, and times. |
| 211 | |
| 212 | Referenced by UIArxDS::build(), UIARX::build(), bdm::concat(), bdm::compositepdf::getrv(), bdm::merger::merger(), and bdm::compositepdf::setrvc().\hypertarget{classbdm_1_1RV_cbebdb5e0d30101a6eb63550ef701c55}{ |