1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
---|
2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
---|
3 | <compounddef id="libBM_8h" kind="file"> |
---|
4 | <compoundname>libBM.h</compoundname> |
---|
5 | <includes local="no">itpp/itbase.h</includes> |
---|
6 | <includedby refid="libFN_8h" local="yes">work/git/mixpp/bdm/stat/libFN.h</includedby> |
---|
7 | <includedby refid="libEF_8h" local="yes">work/git/mixpp/bdm/stat/libEF.h</includedby> |
---|
8 | <includedby refid="emix_8h" local="yes">work/git/mixpp/bdm/stat/emix.h</includedby> |
---|
9 | <includedby refid="libBM_8cpp" local="yes">work/git/mixpp/bdm/stat/libBM.cpp</includedby> |
---|
10 | <includedby refid="libDS_8h" local="yes">work/git/mixpp/bdm/stat/libDS.h</includedby> |
---|
11 | <includedby refid="loggers_8h" local="yes">work/git/mixpp/bdm/stat/loggers.h</includedby> |
---|
12 | <includedby refid="merger_8h" local="yes">work/git/mixpp/bdm/stat/merger.h</includedby> |
---|
13 | <includedby refid="testbidiff_8cpp" local="yes">work/git/mixpp/pmsm/testbidiff.cpp</includedby> |
---|
14 | <includedby refid="rv__test_8cpp" local="yes">work/git/mixpp/tests/rv_test.cpp</includedby> |
---|
15 | <includedby refid="test0_8cpp" local="yes">work/git/mixpp/tests/test0.cpp</includedby> |
---|
16 | <incdepgraph> |
---|
17 | <node id="355"> |
---|
18 | <label>work/git/mixpp/bdm/stat/libBM.h</label> |
---|
19 | <link refid="libBM.h"/> |
---|
20 | <childnode refid="356" relation="include"> |
---|
21 | </childnode> |
---|
22 | </node> |
---|
23 | <node id="356"> |
---|
24 | <label>itpp/itbase.h</label> |
---|
25 | </node> |
---|
26 | </incdepgraph> |
---|
27 | <invincdepgraph> |
---|
28 | <node id="372"> |
---|
29 | <label>work/git/mixpp/bdm/stat/loggers.h</label> |
---|
30 | <link refid="loggers_8h"/> |
---|
31 | <childnode refid="363" relation="include"> |
---|
32 | </childnode> |
---|
33 | <childnode refid="364" relation="include"> |
---|
34 | </childnode> |
---|
35 | <childnode refid="360" relation="include"> |
---|
36 | </childnode> |
---|
37 | </node> |
---|
38 | <node id="357"> |
---|
39 | <label>work/git/mixpp/bdm/stat/libBM.h</label> |
---|
40 | <link refid="libBM.h"/> |
---|
41 | <childnode refid="358" relation="include"> |
---|
42 | </childnode> |
---|
43 | <childnode refid="367" relation="include"> |
---|
44 | </childnode> |
---|
45 | <childnode refid="369" relation="include"> |
---|
46 | </childnode> |
---|
47 | <childnode refid="371" relation="include"> |
---|
48 | </childnode> |
---|
49 | <childnode refid="372" relation="include"> |
---|
50 | </childnode> |
---|
51 | <childnode refid="370" relation="include"> |
---|
52 | </childnode> |
---|
53 | </node> |
---|
54 | <node id="370"> |
---|
55 | <label>work/git/mixpp/bdm/stat/merger.h</label> |
---|
56 | <link refid="merger_8h"/> |
---|
57 | </node> |
---|
58 | <node id="369"> |
---|
59 | <label>work/git/mixpp/bdm/stat/emix.h</label> |
---|
60 | <link refid="emix_8h"/> |
---|
61 | <childnode refid="370" relation="include"> |
---|
62 | </childnode> |
---|
63 | <childnode refid="363" relation="include"> |
---|
64 | </childnode> |
---|
65 | </node> |
---|
66 | <node id="366"> |
---|
67 | <label>work/git/mixpp/pmsm/pmsm.h</label> |
---|
68 | <link refid="pmsm_8h-source"/> |
---|
69 | <childnode refid="363" relation="include"> |
---|
70 | </childnode> |
---|
71 | <childnode refid="364" relation="include"> |
---|
72 | </childnode> |
---|
73 | </node> |
---|
74 | <node id="362"> |
---|
75 | <label>work/git/mixpp/bdm/estim/ekf_templ.h</label> |
---|
76 | <link refid="ekf__templ_8h"/> |
---|
77 | <childnode refid="363" relation="include"> |
---|
78 | </childnode> |
---|
79 | </node> |
---|
80 | <node id="367"> |
---|
81 | <label>work/git/mixpp/bdm/stat/libEF.h</label> |
---|
82 | <link refid="libEF_8h"/> |
---|
83 | <childnode refid="359" relation="include"> |
---|
84 | </childnode> |
---|
85 | <childnode refid="361" relation="include"> |
---|
86 | </childnode> |
---|
87 | <childnode refid="368" relation="include"> |
---|
88 | </childnode> |
---|
89 | <childnode refid="369" relation="include"> |
---|
90 | </childnode> |
---|
91 | <childnode refid="370" relation="include"> |
---|
92 | </childnode> |
---|
93 | </node> |
---|
94 | <node id="368"> |
---|
95 | <label>work/git/mixpp/bdm/estim/libPF.h</label> |
---|
96 | <link refid="libPF_8h"/> |
---|
97 | <childnode refid="363" relation="include"> |
---|
98 | </childnode> |
---|
99 | </node> |
---|
100 | <node id="359"> |
---|
101 | <label>work/git/mixpp/bdm/estim/arx.h</label> |
---|
102 | <link refid="arx_8h"/> |
---|
103 | <childnode refid="360" relation="include"> |
---|
104 | </childnode> |
---|
105 | </node> |
---|
106 | <node id="358"> |
---|
107 | <label>work/git/mixpp/bdm/stat/libFN.h</label> |
---|
108 | <link refid="libFN_8h-source"/> |
---|
109 | <childnode refid="359" relation="include"> |
---|
110 | </childnode> |
---|
111 | <childnode refid="361" relation="include"> |
---|
112 | </childnode> |
---|
113 | <childnode refid="366" relation="include"> |
---|
114 | </childnode> |
---|
115 | <childnode refid="363" relation="include"> |
---|
116 | </childnode> |
---|
117 | <childnode refid="364" relation="include"> |
---|
118 | </childnode> |
---|
119 | </node> |
---|
120 | <node id="360"> |
---|
121 | <label>work/git/mixpp/pmsm/sim_var_arx.cpp</label> |
---|
122 | <link refid="sim__var__arx_8cpp"/> |
---|
123 | </node> |
---|
124 | <node id="364"> |
---|
125 | <label>work/git/mixpp/pmsm/sim_var.cpp</label> |
---|
126 | <link refid="sim__var_8cpp"/> |
---|
127 | </node> |
---|
128 | <node id="371"> |
---|
129 | <label>work/git/mixpp/bdm/stat/libDS.h</label> |
---|
130 | <link refid="libDS_8h"/> |
---|
131 | </node> |
---|
132 | <node id="361"> |
---|
133 | <label>work/git/mixpp/bdm/estim/libKF.h</label> |
---|
134 | <link refid="libKF_8h"/> |
---|
135 | <childnode refid="362" relation="include"> |
---|
136 | </childnode> |
---|
137 | <childnode refid="364" relation="include"> |
---|
138 | </childnode> |
---|
139 | <childnode refid="365" relation="include"> |
---|
140 | </childnode> |
---|
141 | </node> |
---|
142 | <node id="365"> |
---|
143 | <label>work/git/mixpp/pmsm/simulator_zdenek/ekf_example/ekf_obj.h</label> |
---|
144 | <link refid="ekf__obj_8h"/> |
---|
145 | </node> |
---|
146 | <node id="363"> |
---|
147 | <label>work/git/mixpp/pmsm/pmsm_mix.cpp</label> |
---|
148 | <link refid="pmsm__mix_8cpp"/> |
---|
149 | </node> |
---|
150 | </invincdepgraph> |
---|
151 | <innerclass refid="classstr" prot="public">str</innerclass> |
---|
152 | <innerclass refid="classRV" prot="public">RV</innerclass> |
---|
153 | <innerclass refid="classfnc" prot="public">fnc</innerclass> |
---|
154 | <innerclass refid="classepdf" prot="public">epdf</innerclass> |
---|
155 | <innerclass refid="classmpdf" prot="public">mpdf</innerclass> |
---|
156 | <innerclass refid="classmepdf" prot="public">mepdf</innerclass> |
---|
157 | <innerclass refid="classDS" prot="public">DS</innerclass> |
---|
158 | <innerclass refid="classBM" prot="public">BM</innerclass> |
---|
159 | <innerclass refid="classBMcond" prot="public">BMcond</innerclass> |
---|
160 | <sectiondef kind="func"> |
---|
161 | <memberdef kind="function" id="libBM_8h_133c114e83980d883c5b211c47d5322a4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
162 | <type><ref refid="classRV" kindref="compound">RV</ref></type> |
---|
163 | <definition>RV concat</definition> |
---|
164 | <argsstring>(const RV &rv1, const RV &rv2)</argsstring> |
---|
165 | <name>concat</name> |
---|
166 | <param> |
---|
167 | <type>const <ref refid="classRV" kindref="compound">RV</ref> &</type> |
---|
168 | <declname>rv1</declname> |
---|
169 | </param> |
---|
170 | <param> |
---|
171 | <type>const <ref refid="classRV" kindref="compound">RV</ref> &</type> |
---|
172 | <declname>rv2</declname> |
---|
173 | </param> |
---|
174 | <briefdescription> |
---|
175 | <para>Concat two random variables. </para> </briefdescription> |
---|
176 | <detaileddescription> |
---|
177 | </detaileddescription> |
---|
178 | <inbodydescription> |
---|
179 | </inbodydescription> |
---|
180 | <location file="/home/smidl/work/git/mixpp/bdm/stat/libBM.h" line="108" bodyfile="/home/smidl/work/git/mixpp/bdm/stat/libBM.cpp" bodystart="177" bodyend="181"/> |
---|
181 | <references refid="classRV_1935790526b630dec4ffefa9ec0c2b6fb" compoundref="libBM_8cpp" startline="51" endline="78">RV::add</references> |
---|
182 | </memberdef> |
---|
183 | </sectiondef> |
---|
184 | <briefdescription> |
---|
185 | <para>Bayesian Models (bm) that use Bayes rule to learn from observations. </para> </briefdescription> |
---|
186 | <detaileddescription> |
---|
187 | <para><simplesect kind="author"><para>Vaclav Smidl.</para></simplesect> |
---|
188 | ----------------------------------- BDM++ - C++ library for Bayesian Decision Making under Uncertainty</para><para>Using IT++ for numerical operations ----------------------------------- </para> </detaileddescription> |
---|
189 | <programlisting> |
---|
190 | <codeline lineno="1"></codeline> |
---|
191 | <codeline lineno="13"><highlight class="preprocessor">#ifndef<sp/>BM_H</highlight></codeline> |
---|
192 | <codeline lineno="14"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>BM_H</highlight></codeline> |
---|
193 | <codeline lineno="15"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> |
---|
194 | <codeline lineno="16"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><itpp/itbase.h></highlight><highlight class="normal"></highlight></codeline> |
---|
195 | <codeline lineno="17"><highlight class="normal"></highlight><highlight class="comment">//#include<sp/><std></highlight><highlight class="normal"></highlight></codeline> |
---|
196 | <codeline lineno="18"><highlight class="normal"></highlight></codeline> |
---|
197 | <codeline lineno="19"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">itpp;</highlight></codeline> |
---|
198 | <codeline lineno="20"><highlight class="normal"></highlight></codeline> |
---|
199 | <codeline lineno="22" refid="classstr" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classstr" kindref="compound" tooltip="Structure of RV (used internally).">str</ref>{</highlight></codeline> |
---|
200 | <codeline lineno="23"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
201 | <codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ivec<sp/>ids;</highlight></codeline> |
---|
202 | <codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ivec<sp/>times;</highlight></codeline> |
---|
203 | <codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classstr" kindref="compound" tooltip="Structure of RV (used internally).">str</ref>(ivec<sp/>ids0,<sp/>ivec<sp/>times0):ids(ids0),times(times0){</highlight></codeline> |
---|
204 | <codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_assert_debug(times0.length()==ids0.length(),</highlight><highlight class="stringliteral">"Incompatible<sp/>input"</highlight><highlight class="normal">);</highlight></codeline> |
---|
205 | <codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>};</highlight></codeline> |
---|
206 | <codeline lineno="29"><highlight class="normal">};</highlight></codeline> |
---|
207 | <codeline lineno="30"><highlight class="normal"></highlight></codeline> |
---|
208 | <codeline lineno="37" refid="classRV" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>{</highlight></codeline> |
---|
209 | <codeline lineno="38"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
210 | <codeline lineno="40" refid="classRV_1f2396efe2e6d656ebe9e6f06018cbe25" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classRV_1f2396efe2e6d656ebe9e6f06018cbe25" kindref="member" tooltip="size = sum of sizes">tsize</ref>;</highlight></codeline> |
---|
211 | <codeline lineno="42" refid="classRV_10d7b36e2bbccf880c8fcf1e8cc43c1a9" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classRV_10d7b36e2bbccf880c8fcf1e8cc43c1a9" kindref="member" tooltip="len = number of individual rvs">len</ref>;</highlight></codeline> |
---|
212 | <codeline lineno="44" refid="classRV_11bd7165140f4b880a7f344bbb1c433f9" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ivec<sp/><ref refid="classRV_11bd7165140f4b880a7f344bbb1c433f9" kindref="member" tooltip="Vector of unique IDs.">ids</ref>;</highlight></codeline> |
---|
213 | <codeline lineno="46" refid="classRV_1c878aab13f34b420e1eb5b485563682b" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ivec<sp/><ref refid="classRV_1c878aab13f34b420e1eb5b485563682b" kindref="member" tooltip="Vector of sizes.">sizes</ref>;</highlight></codeline> |
---|
214 | <codeline lineno="48" refid="classRV_1646e530c47a2dd38254b778d9f11ac89" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ivec<sp/><ref refid="classRV_1646e530c47a2dd38254b778d9f11ac89" kindref="member" tooltip="Vector of shifts from current time.">times</ref>;</highlight></codeline> |
---|
215 | <codeline lineno="50" refid="classRV_1df5d0030b277a1db2f1fd5fb79152acb" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Array<std::string><sp/><ref refid="classRV_1df5d0030b277a1db2f1fd5fb79152acb" kindref="member" tooltip="Array of names.">names</ref>;</highlight></codeline> |
---|
216 | <codeline lineno="51"><highlight class="normal"></highlight></codeline> |
---|
217 | <codeline lineno="52"><highlight class="normal"></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
---|
218 | <codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>init<sp/>(ivec<sp/>in_ids,<sp/>Array<std::string><sp/>in_names,<sp/>ivec<sp/>in_sizes,<sp/>ivec<sp/>in_times<sp/>);</highlight></codeline> |
---|
219 | <codeline lineno="55"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
220 | <codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV_16a22f5c06d6403870d4e414b1993bf9e" kindref="member" tooltip="Constructor of empty RV.">RV</ref><sp/>(<sp/>Array<std::string><sp/>in_names,<sp/>ivec<sp/>in_sizes,<sp/>ivec<sp/>in_times<sp/>);</highlight></codeline> |
---|
221 | <codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV_16a22f5c06d6403870d4e414b1993bf9e" kindref="member" tooltip="Constructor of empty RV.">RV</ref><sp/>(<sp/>Array<std::string><sp/>in_names,<sp/>ivec<sp/>in_sizes<sp/>);</highlight></codeline> |
---|
222 | <codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV_16a22f5c06d6403870d4e414b1993bf9e" kindref="member" tooltip="Constructor of empty RV.">RV</ref><sp/>(<sp/>Array<std::string><sp/>in_names<sp/>);</highlight></codeline> |
---|
223 | <codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV_16a22f5c06d6403870d4e414b1993bf9e" kindref="member" tooltip="Constructor of empty RV.">RV</ref><sp/>();</highlight></codeline> |
---|
224 | <codeline lineno="64"><highlight class="normal"></highlight></codeline> |
---|
225 | <codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/>std::ostream<sp/>&<ref refid="classRV_1cad6f15535d10437f6690cb4492176a8" kindref="member" tooltip="Printing output e.g. for debugging.">operator<< </ref>(<sp/>std::ostream<sp/>&os,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv<sp/>);</highlight></codeline> |
---|
226 | <codeline lineno="67"><highlight class="normal"></highlight></codeline> |
---|
227 | <codeline lineno="69" refid="classRV_1f5c7b8bd589eef09ccdf3329a0addea0" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classRV_1f5c7b8bd589eef09ccdf3329a0addea0" kindref="member" tooltip="Return number of scalars in the RV.">count</ref>()</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classRV_1f2396efe2e6d656ebe9e6f06018cbe25" kindref="member" tooltip="size = sum of sizes">tsize</ref>;}<sp/>;</highlight></codeline> |
---|
228 | <codeline lineno="71" refid="classRV_1c114a6f3ff06796cc2f4dacba74291eb" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classRV_1c114a6f3ff06796cc2f4dacba74291eb" kindref="member" tooltip="Return length (number of entries) of the RV.">length</ref>()</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classRV_10d7b36e2bbccf880c8fcf1e8cc43c1a9" kindref="member" tooltip="len = number of individual rvs">len</ref>;}<sp/>;</highlight></codeline> |
---|
229 | <codeline lineno="72"><highlight class="normal"></highlight></codeline> |
---|
230 | <codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//TODO<sp/>why<sp/>not<sp/>inline<sp/>and<sp/>later??</highlight><highlight class="normal"></highlight></codeline> |
---|
231 | <codeline lineno="74"><highlight class="normal"></highlight></codeline> |
---|
232 | <codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ivec<sp/><ref refid="classRV_10c493a7a897f4d75682f4264e40779a1" kindref="member" tooltip="Find indexes of self in another rv,.">findself</ref><sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv2<sp/>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
233 | <codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classRV_182cc7fa22ce91cf461a522ad62014c65" kindref="member" tooltip="Compare if rv2 is identical to this RV.">equal</ref><sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv2<sp/>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
234 | <codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">add</highlight><highlight class="normal"><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv2<sp/>);</highlight></codeline> |
---|
235 | <codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classRV_1a85c47bd838ebbdcb6798d7843e87db2" kindref="member" tooltip="Subtract another variable from the current one.">subt</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>rv2<sp/>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
236 | <codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classRV_10a9ea7bc6fad270cc54a455a9f8f387d" kindref="member" tooltip="Select only variables at indeces ind.">subselect</ref><sp/>(<sp/>ivec<sp/>ind<sp/>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
237 | <codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classRV_165e5b820e482caff7f284d11898ef64f" kindref="member" tooltip="Select only variables at indeces ind.">operator() </ref>(<sp/>ivec<sp/>ind<sp/>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
238 | <codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classRV_1e0a158d53ab9430627241f844f4c9a60" kindref="member" tooltip="Shift time shifted by delta.">t</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>delta<sp/>);</highlight></codeline> |
---|
239 | <codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classstr" kindref="compound" tooltip="Structure of RV (used internally).">str</ref><sp/><ref refid="classRV_152f3ade796814da627ff5a44d00986be" kindref="member" tooltip="generate str from rv, by expanding sizes">tostr</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
240 | <codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ivec<sp/><ref refid="classRV_11844ea0d9c10428f5e0ee1d4d569ef0a" kindref="member" tooltip="generate indeces into">dataind</ref>(<ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>crv)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
241 | <codeline lineno="93"><highlight class="normal"></highlight></codeline> |
---|
242 | <codeline lineno="95" refid="classRV_1b88ef5124713c9e30fd9446846b3f044" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Array<std::string>&<sp/><ref refid="classRV_1b88ef5124713c9e30fd9446846b3f044" kindref="member" tooltip="access function">_names</ref>()<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classRV_1df5d0030b277a1db2f1fd5fb79152acb" kindref="member" tooltip="Array of names.">names</ref>;};</highlight></codeline> |
---|
243 | <codeline lineno="96"><highlight class="normal"></highlight></codeline> |
---|
244 | <codeline lineno="98" refid="classRV_14a0069bc69f5a98d7ce9ed59077f2e6c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classRV_14a0069bc69f5a98d7ce9ed59077f2e6c" kindref="member" tooltip="access function">id</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>at<sp/>)<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classRV_11bd7165140f4b880a7f344bbb1c433f9" kindref="member" tooltip="Vector of unique IDs.">ids</ref><sp/>(<sp/>at<sp/>);};</highlight></codeline> |
---|
245 | <codeline lineno="100" refid="classRV_120db23a5585d64a6e24404cc8379bc28" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classRV_120db23a5585d64a6e24404cc8379bc28" kindref="member" tooltip="access function">size</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>at<sp/>)<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classRV_1c878aab13f34b420e1eb5b485563682b" kindref="member" tooltip="Vector of sizes.">sizes</ref><sp/>(<sp/>at<sp/>);};</highlight></codeline> |
---|
246 | <codeline lineno="102" refid="classRV_1af068cf478864fe1a4fbfc6b4693b088" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classRV_1af068cf478864fe1a4fbfc6b4693b088" kindref="member" tooltip="access function">time</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>at<sp/>)<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classRV_1646e530c47a2dd38254b778d9f11ac89" kindref="member" tooltip="Vector of shifts from current time.">times</ref><sp/>(<sp/>at<sp/>);};</highlight></codeline> |
---|
247 | <codeline lineno="104" refid="classRV_13ae4dd6e368f814a02710636ac8e1721" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::string<sp/><ref refid="classRV_13ae4dd6e368f814a02710636ac8e1721" kindref="member" tooltip="access function">name</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>at<sp/>)<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classRV_1df5d0030b277a1db2f1fd5fb79152acb" kindref="member" tooltip="Array of names.">names</ref><sp/>(<sp/>at<sp/>);};</highlight></codeline> |
---|
248 | <codeline lineno="105"><highlight class="normal">};</highlight></codeline> |
---|
249 | <codeline lineno="106"><highlight class="normal"></highlight></codeline> |
---|
250 | <codeline lineno="108"><highlight class="normal"><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>concat<sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv1,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv2<sp/>);</highlight></codeline> |
---|
251 | <codeline lineno="109"><highlight class="normal"></highlight></codeline> |
---|
252 | <codeline lineno="110"><highlight class="normal"></highlight></codeline> |
---|
253 | <codeline lineno="112"><highlight class="normal"></highlight></codeline> |
---|
254 | <codeline lineno="113" refid="classfnc" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classfnc" kindref="compound" tooltip="Class representing function of variable represented by rv.">fnc</ref><sp/>{</highlight></codeline> |
---|
255 | <codeline lineno="114"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
256 | <codeline lineno="116" refid="classfnc_122d51d10a7901331167f64f80d1af8e9" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classfnc_122d51d10a7901331167f64f80d1af8e9" kindref="member" tooltip="Length of the output vector.">dimy</ref>;</highlight></codeline> |
---|
257 | <codeline lineno="117"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
258 | <codeline lineno="119" refid="classfnc_18a1da32233c3006a4239cf601c413538" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classfnc_18a1da32233c3006a4239cf601c413538" kindref="member" tooltip="default constructor">fnc</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>dy<sp/>)<sp/>:<ref refid="classfnc_122d51d10a7901331167f64f80d1af8e9" kindref="member" tooltip="Length of the output vector.">dimy</ref><sp/>(<sp/>dy<sp/>)<sp/>{};</highlight></codeline> |
---|
259 | <codeline lineno="121" refid="classfnc_17fad2e6cb35909a165ec5a53def4a18c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>vec<sp/><ref refid="classfnc_17fad2e6cb35909a165ec5a53def4a18c" kindref="member" tooltip="function evaluates numerical value of at cond ">eval</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&cond<sp/>)<sp/>{</highlight></codeline> |
---|
260 | <codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>vec<sp/>(<sp/>0<sp/>);</highlight></codeline> |
---|
261 | <codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>};</highlight></codeline> |
---|
262 | <codeline lineno="124"><highlight class="normal"></highlight></codeline> |
---|
263 | <codeline lineno="126" refid="classfnc_1a8891973d0ca48ce38e1886df45ca298" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classfnc_1a8891973d0ca48ce38e1886df45ca298" kindref="member" tooltip="access function">_dimy</ref>()</highlight><highlight class="keyword"><sp/>const</highlight><highlight class="normal">{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classfnc_122d51d10a7901331167f64f80d1af8e9" kindref="member" tooltip="Length of the output vector.">dimy</ref>;}</highlight></codeline> |
---|
264 | <codeline lineno="127"><highlight class="normal"></highlight></codeline> |
---|
265 | <codeline lineno="129" refid="classfnc_117164c202f6feee3d708b8caab6306ab" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classfnc_117164c202f6feee3d708b8caab6306ab" kindref="member" tooltip="Destructor for future use;.">~fnc</ref>()<sp/>{};</highlight></codeline> |
---|
266 | <codeline lineno="130"><highlight class="normal">};</highlight></codeline> |
---|
267 | <codeline lineno="131"><highlight class="normal"></highlight></codeline> |
---|
268 | <codeline lineno="132"><highlight class="normal"></highlight></codeline> |
---|
269 | <codeline lineno="134"><highlight class="normal"></highlight></codeline> |
---|
270 | <codeline lineno="135" refid="classepdf" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classepdf" kindref="compound" tooltip="Probability density function with numerical statistics, e.g. posterior density.">epdf</ref><sp/>{</highlight></codeline> |
---|
271 | <codeline lineno="136"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
272 | <codeline lineno="138" refid="classepdf_174da992e3f5d598da8850b646b79b9d9" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classepdf_174da992e3f5d598da8850b646b79b9d9" kindref="member" tooltip="Identified of the random variable.">rv</ref>;</highlight></codeline> |
---|
273 | <codeline lineno="139"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
274 | <codeline lineno="141" refid="classepdf_1d8eb760037b3bad5a0d64081606697cd" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classepdf_1d8eb760037b3bad5a0d64081606697cd" kindref="member" tooltip="default constructor">epdf</ref>()<sp/>:<ref refid="classepdf_174da992e3f5d598da8850b646b79b9d9" kindref="member" tooltip="Identified of the random variable.">rv</ref><sp/>(<sp/>)<sp/>{};</highlight></codeline> |
---|
275 | <codeline lineno="142"><highlight class="normal"></highlight></codeline> |
---|
276 | <codeline lineno="144" refid="classepdf_1c95b1a27a8dd9507bb9a5a3cb2809c7a" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classepdf_1d8eb760037b3bad5a0d64081606697cd" kindref="member" tooltip="default constructor">epdf</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv0<sp/>)<sp/>:<ref refid="classepdf_174da992e3f5d598da8850b646b79b9d9" kindref="member" tooltip="Identified of the random variable.">rv</ref><sp/>(<sp/>rv0<sp/>)<sp/>{};</highlight></codeline> |
---|
277 | <codeline lineno="145"><highlight class="normal"></highlight></codeline> |
---|
278 | <codeline lineno="147"><highlight class="comment">//<sp/><sp/><sp/><sp/><sp/><sp/>virtual<sp/>vec<sp/>moment<sp/>(<sp/>const<sp/>int<sp/>order<sp/>=<sp/>1<sp/>);</highlight></codeline> |
---|
279 | <codeline lineno="149"><highlight class="comment"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>vec<sp/><ref refid="classepdf_18019654e494bf5e458f6fb947e11b262" kindref="member" tooltip="Returns the required moment of the epdf.">sample</ref><sp/>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>=0;</highlight></codeline> |
---|
280 | <codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>mat<sp/><ref refid="classepdf_154d7dd53a641b618771cd9bee135181f" kindref="member" tooltip="Returns N samples from density .">sampleN</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>N<sp/>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
281 | <codeline lineno="153" refid="classepdf_13ea597362e11a0040fe7c990269d072c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="classepdf_13ea597362e11a0040fe7c990269d072c" kindref="member" tooltip="Compute probability of argument val.">eval</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&val<sp/>)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>exp<sp/>(<sp/>this-><ref refid="classepdf_16aef3eca74899692503769c18add1a4c" kindref="member" tooltip="Compute log-probability of argument val.">evalpdflog</ref><sp/>(<sp/>val<sp/>)<sp/>);};</highlight></codeline> |
---|
282 | <codeline lineno="154"><highlight class="normal"></highlight></codeline> |
---|
283 | <codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="classepdf_16aef3eca74899692503769c18add1a4c" kindref="member" tooltip="Compute log-probability of argument val.">evalpdflog</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&val<sp/>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>=0;</highlight></codeline> |
---|
284 | <codeline lineno="157"><highlight class="normal"></highlight></codeline> |
---|
285 | <codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>vec<sp/><ref refid="classepdf_1bf0a070a8f3e67a93604ca724638b870" kindref="member" tooltip="return expected value">mean</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>=0;</highlight></codeline> |
---|
286 | <codeline lineno="160"><highlight class="normal"></highlight></codeline> |
---|
287 | <codeline lineno="162" refid="classepdf_10a322dd106f04c0a2915e3d4f4227396" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classepdf_10a322dd106f04c0a2915e3d4f4227396" kindref="member" tooltip="Destructor for future use;.">~epdf</ref>()<sp/>{};</highlight></codeline> |
---|
288 | <codeline lineno="164" refid="classepdf_14778ea61ef400813e47750e024e9fc2f" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref>&<sp/><ref refid="classepdf_14778ea61ef400813e47750e024e9fc2f" kindref="member" tooltip="access function, possibly dangerous!">_rv</ref>()<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classepdf_174da992e3f5d598da8850b646b79b9d9" kindref="member" tooltip="Identified of the random variable.">rv</ref>;}</highlight></codeline> |
---|
289 | <codeline lineno="165"><highlight class="normal">};</highlight></codeline> |
---|
290 | <codeline lineno="166"><highlight class="normal"></highlight></codeline> |
---|
291 | <codeline lineno="167"><highlight class="normal"></highlight></codeline> |
---|
292 | <codeline lineno="169"><highlight class="comment">//TODO<sp/>Samplecond<sp/>can<sp/>be<sp/>generalized</highlight><highlight class="normal"></highlight></codeline> |
---|
293 | <codeline lineno="170"><highlight class="normal"></highlight></codeline> |
---|
294 | <codeline lineno="171" refid="classmpdf" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classmpdf" kindref="compound" tooltip="Conditional probability density, e.g. modeling some dependencies.">mpdf</ref><sp/>{</highlight></codeline> |
---|
295 | <codeline lineno="172"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
296 | <codeline lineno="174" refid="classmpdf_1f6687c07ff07d47812dd565368ca59eb" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classmpdf_1f6687c07ff07d47812dd565368ca59eb" kindref="member" tooltip="modeled random variable">rv</ref>;</highlight></codeline> |
---|
297 | <codeline lineno="176" refid="classmpdf_1acb7dda792b3cd5576f39fa3129abbab" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classmpdf_1acb7dda792b3cd5576f39fa3129abbab" kindref="member" tooltip="random variable in condition">rvc</ref>;</highlight></codeline> |
---|
298 | <codeline lineno="178" refid="classmpdf_17aa894208a32f3487827df6d5054424c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classepdf" kindref="compound" tooltip="Probability density function with numerical statistics, e.g. posterior density.">epdf</ref>*<sp/><ref refid="classmpdf_17aa894208a32f3487827df6d5054424c" kindref="member" tooltip="pointer to internal epdf">ep</ref>;</highlight></codeline> |
---|
299 | <codeline lineno="179"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
300 | <codeline lineno="180"><highlight class="normal"></highlight></codeline> |
---|
301 | <codeline lineno="182"><highlight class="comment">//<sp/><sp/><sp/><sp/><sp/><sp/>virtual<sp/>fnc<sp/>moment<sp/>(<sp/>const<sp/>int<sp/>order<sp/>=<sp/>1<sp/>);</highlight></codeline> |
---|
302 | <codeline lineno="184" refid="classmpdf_13f172b79ec4a5ebc87898a5381141f1b" refkind="member"><highlight class="comment"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>vec<sp/><ref refid="classmpdf_13f172b79ec4a5ebc87898a5381141f1b" kindref="member" tooltip="Returns the required moment of the epdf.">samplecond</ref><sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&cond,<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>&ll<sp/>)<sp/>{this-><ref refid="classmpdf_10f95a0cc6ab40611f46804682446ed83" kindref="member" tooltip="Update ep so that it represents this mpdf conditioned on rvc = cond.">condition</ref><sp/>(<sp/>cond<sp/>);</highlight></codeline> |
---|
303 | <codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>temp=<sp/><ref refid="classmpdf_17aa894208a32f3487827df6d5054424c" kindref="member" tooltip="pointer to internal epdf">ep</ref>-><ref refid="classepdf_18019654e494bf5e458f6fb947e11b262" kindref="member" tooltip="Returns the required moment of the epdf.">sample</ref>();</highlight></codeline> |
---|
304 | <codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ll=<ref refid="classmpdf_17aa894208a32f3487827df6d5054424c" kindref="member" tooltip="pointer to internal epdf">ep</ref>-><ref refid="classepdf_16aef3eca74899692503769c18add1a4c" kindref="member" tooltip="Compute log-probability of argument val.">evalpdflog</ref><sp/>(<sp/>temp<sp/>);</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>temp;};</highlight></codeline> |
---|
305 | <codeline lineno="188" refid="classmpdf_10e37163660f93df2a4d723cedb1da89c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>mat<sp/><ref refid="classmpdf_13f172b79ec4a5ebc87898a5381141f1b" kindref="member" tooltip="Returns the required moment of the epdf.">samplecond</ref><sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&cond,<sp/>vec<sp/>&ll,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>N<sp/>)<sp/>{</highlight></codeline> |
---|
306 | <codeline lineno="189"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>this-><ref refid="classmpdf_10f95a0cc6ab40611f46804682446ed83" kindref="member" tooltip="Update ep so that it represents this mpdf conditioned on rvc = cond.">condition</ref><sp/>(<sp/>cond<sp/>);</highlight></codeline> |
---|
307 | <codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mat<sp/>temp<sp/>(<sp/><ref refid="classmpdf_1f6687c07ff07d47812dd565368ca59eb" kindref="member" tooltip="modeled random variable">rv</ref>.<ref refid="classRV_1f5c7b8bd589eef09ccdf3329a0addea0" kindref="member" tooltip="Return number of scalars in the RV.">count</ref>(),N<sp/>);<sp/>vec<sp/>smp<sp/>(<sp/><ref refid="classmpdf_1f6687c07ff07d47812dd565368ca59eb" kindref="member" tooltip="modeled random variable">rv</ref>.<ref refid="classRV_1f5c7b8bd589eef09ccdf3329a0addea0" kindref="member" tooltip="Return number of scalars in the RV.">count</ref>()<sp/>);<sp/></highlight></codeline> |
---|
308 | <codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=0;i<N;i++<sp/>)<sp/>{smp=<ref refid="classmpdf_17aa894208a32f3487827df6d5054424c" kindref="member" tooltip="pointer to internal epdf">ep</ref>-><ref refid="classepdf_18019654e494bf5e458f6fb947e11b262" kindref="member" tooltip="Returns the required moment of the epdf.">sample</ref>()<sp/>;temp.set_col<sp/>(<sp/>i,<sp/>smp<sp/>);ll<sp/>(<sp/>i<sp/>)<sp/>=<ref refid="classmpdf_17aa894208a32f3487827df6d5054424c" kindref="member" tooltip="pointer to internal epdf">ep</ref>-><ref refid="classepdf_16aef3eca74899692503769c18add1a4c" kindref="member" tooltip="Compute log-probability of argument val.">evalpdflog</ref><sp/>(<sp/>smp<sp/>);}</highlight></codeline> |
---|
309 | <codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>temp;</highlight></codeline> |
---|
310 | <codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>};</highlight></codeline> |
---|
311 | <codeline lineno="195" refid="classmpdf_10f95a0cc6ab40611f46804682446ed83" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classmpdf_10f95a0cc6ab40611f46804682446ed83" kindref="member" tooltip="Update ep so that it represents this mpdf conditioned on rvc = cond.">condition</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&cond<sp/>)<sp/>{};</highlight></codeline> |
---|
312 | <codeline lineno="196"><highlight class="normal"></highlight></codeline> |
---|
313 | <codeline lineno="198" refid="classmpdf_180b738ece5bd4f8c4edaee4b38906f91" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="classmpdf_180b738ece5bd4f8c4edaee4b38906f91" kindref="member" tooltip="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evalcond</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&dt,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&cond<sp/>)<sp/>{this-><ref refid="classmpdf_10f95a0cc6ab40611f46804682446ed83" kindref="member" tooltip="Update ep so that it represents this mpdf conditioned on rvc = cond.">condition</ref><sp/>(<sp/>cond<sp/>);</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classmpdf_17aa894208a32f3487827df6d5054424c" kindref="member" tooltip="pointer to internal epdf">ep</ref>-><ref refid="classepdf_13ea597362e11a0040fe7c990269d072c" kindref="member" tooltip="Compute probability of argument val.">eval</ref><sp/>(<sp/>dt<sp/>);};</highlight></codeline> |
---|
314 | <codeline lineno="199"><highlight class="normal"></highlight></codeline> |
---|
315 | <codeline lineno="201" refid="classmpdf_16788be9f3a888796499c5293a318fcfb" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classmpdf_16788be9f3a888796499c5293a318fcfb" kindref="member" tooltip="Destructor for future use;.">~mpdf</ref>()<sp/>{};</highlight></codeline> |
---|
316 | <codeline lineno="202"><highlight class="normal"></highlight></codeline> |
---|
317 | <codeline lineno="204" refid="classmpdf_1581ecf362185d37c08bb31cb9d046d6f" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classmpdf_1581ecf362185d37c08bb31cb9d046d6f" kindref="member" tooltip="Default constructor.">mpdf</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rvc0<sp/>)<sp/>:<ref refid="classmpdf_1f6687c07ff07d47812dd565368ca59eb" kindref="member" tooltip="modeled random variable">rv</ref><sp/>(<sp/>rv0<sp/>),<ref refid="classmpdf_1acb7dda792b3cd5576f39fa3129abbab" kindref="member" tooltip="random variable in condition">rvc</ref><sp/>(<sp/>rvc0<sp/>)<sp/>{};</highlight></codeline> |
---|
318 | <codeline lineno="206" refid="classmpdf_1ec9c850305984582548e8deb64f0ffe8" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classmpdf_1ec9c850305984582548e8deb64f0ffe8" kindref="member" tooltip="access function">_rvc</ref>()<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classmpdf_1acb7dda792b3cd5576f39fa3129abbab" kindref="member" tooltip="random variable in condition">rvc</ref>;}</highlight></codeline> |
---|
319 | <codeline lineno="208" refid="classmpdf_11e71ad4c66d5884c82d4a3b06b42fe32" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classmpdf_11e71ad4c66d5884c82d4a3b06b42fe32" kindref="member" tooltip="access function">_rv</ref>()<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classmpdf_1f6687c07ff07d47812dd565368ca59eb" kindref="member" tooltip="modeled random variable">rv</ref>;}</highlight></codeline> |
---|
320 | <codeline lineno="210" refid="classmpdf_1e17780ee5b2cfe05922a6c56af1462f8" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classepdf" kindref="compound" tooltip="Probability density function with numerical statistics, e.g. posterior density.">epdf</ref>&<sp/><ref refid="classmpdf_1e17780ee5b2cfe05922a6c56af1462f8" kindref="member" tooltip="access function">_epdf</ref>()<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*<ref refid="classmpdf_17aa894208a32f3487827df6d5054424c" kindref="member" tooltip="pointer to internal epdf">ep</ref>;}</highlight></codeline> |
---|
321 | <codeline lineno="211"><highlight class="normal">};</highlight></codeline> |
---|
322 | <codeline lineno="212"><highlight class="normal"></highlight></codeline> |
---|
323 | <codeline lineno="217" refid="classmepdf" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classmepdf" kindref="compound" tooltip="Unconditional mpdf, allows using epdf in the role of mpdf.">mepdf</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classmpdf" kindref="compound" tooltip="Conditional probability density, e.g. modeling some dependencies.">mpdf</ref><sp/>{</highlight></codeline> |
---|
324 | <codeline lineno="218"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
325 | <codeline lineno="220" refid="classmepdf_17ab1c50f0aa16230117436dee500f2e0" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classmepdf_17ab1c50f0aa16230117436dee500f2e0" kindref="member" tooltip="Default constructor.">mepdf</ref><sp/>(<ref refid="classepdf" kindref="compound" tooltip="Probability density function with numerical statistics, e.g. posterior density.">epdf</ref><sp/>&em<sp/>)<sp/>:<ref refid="classmpdf" kindref="compound" tooltip="Conditional probability density, e.g. modeling some dependencies.">mpdf</ref><sp/>(<sp/>em.<ref refid="classmpdf_11e71ad4c66d5884c82d4a3b06b42fe32" kindref="member" tooltip="access function">_rv</ref>(),<ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref>()<sp/>)<sp/>{<ref refid="classmpdf_17aa894208a32f3487827df6d5054424c" kindref="member" tooltip="pointer to internal epdf">ep</ref>=&em;};</highlight></codeline> |
---|
326 | <codeline lineno="221"><highlight class="normal">};</highlight></codeline> |
---|
327 | <codeline lineno="222"><highlight class="normal"></highlight></codeline> |
---|
328 | <codeline lineno="230" refid="classDS" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classDS" kindref="compound" tooltip="Abstract class for discrete-time sources of data.">DS</ref><sp/>{</highlight></codeline> |
---|
329 | <codeline lineno="231"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
330 | <codeline lineno="233" refid="classDS_11012025a1a3a1fdd24aa48698a3d3454" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classDS_11012025a1a3a1fdd24aa48698a3d3454" kindref="member" tooltip="Observed variables, returned by getdata().">Drv</ref>;</highlight></codeline> |
---|
331 | <codeline lineno="235" refid="classDS_10a88ffaeb3c7c2cf30c69bc41a000629" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classDS_10a88ffaeb3c7c2cf30c69bc41a000629" kindref="member" tooltip="Action variables, accepted by write().">Urv</ref>;<sp/></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
332 | <codeline lineno="236"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
333 | <codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classDS_1db2dacc9e71a36eeb9c5c2ee402eeeb1" kindref="member" tooltip="Returns full vector of observed data.">getdata</ref><sp/>(<sp/>vec<sp/>&dt<sp/>);</highlight></codeline> |
---|
334 | <codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classDS_1db2dacc9e71a36eeb9c5c2ee402eeeb1" kindref="member" tooltip="Returns full vector of observed data.">getdata</ref><sp/>(<sp/>vec<sp/>&dt,<sp/>ivec<sp/>&indeces<sp/>);</highlight></codeline> |
---|
335 | <codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classDS_10dfb6788b70c0d48a1f5276ed6c93039" kindref="member" tooltip="Accepts action variable and schedule it for application.">write</ref><sp/>(<sp/>vec<sp/>&ut<sp/>);</highlight></codeline> |
---|
336 | <codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classDS_10dfb6788b70c0d48a1f5276ed6c93039" kindref="member" tooltip="Accepts action variable and schedule it for application.">write</ref><sp/>(<sp/>vec<sp/>&ut,<sp/>ivec<sp/>&indeces<sp/>);</highlight></codeline> |
---|
337 | <codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classDS_19a35ca9c9321dce2bf63bf668f785b75" kindref="member" tooltip="Method that assigns random variables to the datasource. Typically, the datasource...">linkrvs</ref><sp/>(<sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&drv,<sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&urv<sp/>);</highlight></codeline> |
---|
338 | <codeline lineno="251"><highlight class="normal"></highlight></codeline> |
---|
339 | <codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classDS_1470ba89e8e7c3c4d830803221b4e9be6" kindref="member" tooltip="Moves from to , i.e. perfroms the actions and reads response of the system.">step</ref>();</highlight></codeline> |
---|
340 | <codeline lineno="254"><highlight class="normal"></highlight></codeline> |
---|
341 | <codeline lineno="255"><highlight class="normal">};</highlight></codeline> |
---|
342 | <codeline lineno="256"><highlight class="normal"></highlight></codeline> |
---|
343 | <codeline lineno="261" refid="classBM" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classBM" kindref="compound" tooltip="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</ref><sp/>{</highlight></codeline> |
---|
344 | <codeline lineno="262"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
345 | <codeline lineno="264" refid="classBM_1af00f0612fabe66241dd507188cdbf88" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classBM_1af00f0612fabe66241dd507188cdbf88" kindref="member" tooltip="Random variable of the posterior.">rv</ref>;</highlight></codeline> |
---|
346 | <codeline lineno="266" refid="classBM_15623fef6572a08c2b53b8c87b82dc979" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="classBM_15623fef6572a08c2b53b8c87b82dc979" kindref="member" tooltip="Logarithm of marginalized data likelihood.">ll</ref>;</highlight></codeline> |
---|
347 | <codeline lineno="268" refid="classBM_1bf6fb59b30141074f8ee1e2f43d03129" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classBM_1bf6fb59b30141074f8ee1e2f43d03129" kindref="member" tooltip="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</ref>;</highlight></codeline> |
---|
348 | <codeline lineno="269"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
349 | <codeline lineno="270"><highlight class="normal"></highlight></codeline> |
---|
350 | <codeline lineno="272" refid="classBM_1605d28b426adb677c86a57ddb525132a" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classBM_1605d28b426adb677c86a57ddb525132a" kindref="member" tooltip="Default constructor.">BM</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv0<sp/>)<sp/>:<ref refid="classBM_1af00f0612fabe66241dd507188cdbf88" kindref="member" tooltip="Random variable of the posterior.">rv</ref><sp/>(<sp/>rv0<sp/>),<sp/><ref refid="classBM_15623fef6572a08c2b53b8c87b82dc979" kindref="member" tooltip="Logarithm of marginalized data likelihood.">ll</ref><sp/>(<sp/>0<sp/>),<ref refid="classBM_1bf6fb59b30141074f8ee1e2f43d03129" kindref="member" tooltip="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</ref><sp/>(<sp/>true<sp/>)<sp/>{</highlight><highlight class="comment">//Fixme:<sp/>test<sp/>rv</highlight><highlight class="normal"></highlight></codeline> |
---|
351 | <codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>};</highlight></codeline> |
---|
352 | <codeline lineno="274"><highlight class="normal"></highlight></codeline> |
---|
353 | <codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classBM_1a892eff438aab2dd1a9e2efcb7fb5bdf" kindref="member" tooltip="Incremental Bayes rule.">bayes</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&dt<sp/>)<sp/>=<sp/>0;</highlight></codeline> |
---|
354 | <codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classBM_1a892eff438aab2dd1a9e2efcb7fb5bdf" kindref="member" tooltip="Incremental Bayes rule.">bayes</ref><sp/>(<sp/>mat<sp/>Dt<sp/>);</highlight></codeline> |
---|
355 | <codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classepdf" kindref="compound" tooltip="Probability density function with numerical statistics, e.g. posterior density.">epdf</ref>&<sp/><ref refid="classBM_13dc45554556926bde996a267636abe55" kindref="member" tooltip="Returns a pointer to the epdf representing posterior density on parameters. Use with...">_epdf</ref>()<sp/>=0;</highlight></codeline> |
---|
356 | <codeline lineno="283"><highlight class="normal"></highlight></codeline> |
---|
357 | <codeline lineno="285" refid="classBM_1ca0f02b3b4144e0895cc14f7e0374bdd" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classBM_1ca0f02b3b4144e0895cc14f7e0374bdd" kindref="member" tooltip="Destructor for future use;.">~BM</ref>()<sp/>{};</highlight></codeline> |
---|
358 | <codeline lineno="287" refid="classBM_1126bd2595c48e311fc2a7ab72876092a" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref>&<sp/><ref refid="classBM_1126bd2595c48e311fc2a7ab72876092a" kindref="member" tooltip="access function">_rv</ref>()</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classBM_1af00f0612fabe66241dd507188cdbf88" kindref="member" tooltip="Random variable of the posterior.">rv</ref>;}</highlight></codeline> |
---|
359 | <codeline lineno="289" refid="classBM_187f4a547d2c29180be88175e5eab9c88" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="classBM_187f4a547d2c29180be88175e5eab9c88" kindref="member" tooltip="access function">_ll</ref>()</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classBM_15623fef6572a08c2b53b8c87b82dc979" kindref="member" tooltip="Logarithm of marginalized data likelihood.">ll</ref>;}</highlight></codeline> |
---|
360 | <codeline lineno="290"><highlight class="normal">};</highlight></codeline> |
---|
361 | <codeline lineno="291"><highlight class="normal"></highlight></codeline> |
---|
362 | <codeline lineno="301" refid="classBMcond" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classBMcond" kindref="compound" tooltip="Conditional Bayesian Filter.">BMcond</ref><sp/>{</highlight></codeline> |
---|
363 | <codeline lineno="302"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
364 | <codeline lineno="304" refid="classBMcond_19ba793c8ec453f04d372d17195ed8dec" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/><ref refid="classBMcond_19ba793c8ec453f04d372d17195ed8dec" kindref="member" tooltip="Identificator of the conditioning variable.">rvc</ref>;</highlight></codeline> |
---|
365 | <codeline lineno="305"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
366 | <codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classBMcond_13543cfe274c35f9033c24d8036a96c4d" kindref="member" tooltip="Substitute val for rvc.">condition</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&val<sp/>)<sp/>=0;</highlight></codeline> |
---|
367 | <codeline lineno="309" refid="classBMcond_19a38dcdabef902fd91da3c9fb6ac27f7" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classBMcond_19a38dcdabef902fd91da3c9fb6ac27f7" kindref="member" tooltip="Default constructor.">BMcond</ref><sp/>(<sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv0<sp/>)<sp/>:<ref refid="classBMcond_19ba793c8ec453f04d372d17195ed8dec" kindref="member" tooltip="Identificator of the conditioning variable.">rvc</ref><sp/>(<sp/>rv0<sp/>)<sp/>{};</highlight></codeline> |
---|
368 | <codeline lineno="311" refid="classBMcond_1d40c72250cf93640f982d06de20815b2" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classBMcond_1d40c72250cf93640f982d06de20815b2" kindref="member" tooltip="Destructor for future use.">~BMcond</ref>()<sp/>{};</highlight></codeline> |
---|
369 | <codeline lineno="313" refid="classBMcond_13fa60348b2da6b4208bb95b8d146900a" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref>&<sp/><ref refid="classBMcond_13fa60348b2da6b4208bb95b8d146900a" kindref="member" tooltip="access function">_rvc</ref>()</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classBMcond_19ba793c8ec453f04d372d17195ed8dec" kindref="member" tooltip="Identificator of the conditioning variable.">rvc</ref>;}</highlight></codeline> |
---|
370 | <codeline lineno="314"><highlight class="normal">};</highlight></codeline> |
---|
371 | <codeline lineno="315"><highlight class="normal"></highlight></codeline> |
---|
372 | <codeline lineno="316"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/>//<sp/>BM_H</highlight></codeline> |
---|
373 | </programlisting> |
---|
374 | <location file="/home/smidl/work/git/mixpp/bdm/stat/libBM.h"/> |
---|
375 | </compounddef> |
---|
376 | </doxygen> |
---|