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="testKF__QR_8cpp" kind="file"> |
---|
4 | <compoundname>testKF_QR.cpp</compoundname> |
---|
5 | <includes local="no">itpp/itbase.h</includes> |
---|
6 | <includes refid="libKF_8h" local="no">estim/libKF.h</includes> |
---|
7 | <includes refid="libPF_8h" local="no">estim/libPF.h</includes> |
---|
8 | <incdepgraph> |
---|
9 | <node id="882"> |
---|
10 | <label>libBM.h</label> |
---|
11 | <link refid="libBM_8h"/> |
---|
12 | <childnode refid="879" relation="include"> |
---|
13 | </childnode> |
---|
14 | </node> |
---|
15 | <node id="878"> |
---|
16 | <label>work/git/mixpp/tests/testKF_QR.cpp</label> |
---|
17 | <link refid="testKF_QR.cpp"/> |
---|
18 | <childnode refid="879" relation="include"> |
---|
19 | </childnode> |
---|
20 | <childnode refid="880" relation="include"> |
---|
21 | </childnode> |
---|
22 | <childnode refid="887" relation="include"> |
---|
23 | </childnode> |
---|
24 | </node> |
---|
25 | <node id="885"> |
---|
26 | <label>../itpp_ext.h</label> |
---|
27 | <link refid="itpp__ext_8h-source"/> |
---|
28 | <childnode refid="879" relation="include"> |
---|
29 | </childnode> |
---|
30 | </node> |
---|
31 | <node id="883"> |
---|
32 | <label>../stat/libEF.h</label> |
---|
33 | <link refid="libEF_8h"/> |
---|
34 | <childnode refid="879" relation="include"> |
---|
35 | </childnode> |
---|
36 | <childnode refid="884" relation="include"> |
---|
37 | </childnode> |
---|
38 | <childnode refid="882" relation="include"> |
---|
39 | </childnode> |
---|
40 | <childnode refid="885" relation="include"> |
---|
41 | </childnode> |
---|
42 | </node> |
---|
43 | <node id="887"> |
---|
44 | <label>estim/libPF.h</label> |
---|
45 | <link refid="libPF_8h"/> |
---|
46 | <childnode refid="879" relation="include"> |
---|
47 | </childnode> |
---|
48 | <childnode refid="883" relation="include"> |
---|
49 | </childnode> |
---|
50 | <childnode refid="884" relation="include"> |
---|
51 | </childnode> |
---|
52 | </node> |
---|
53 | <node id="881"> |
---|
54 | <label>../stat/libFN.h</label> |
---|
55 | <link refid="libFN_8h-source"/> |
---|
56 | <childnode refid="879" relation="include"> |
---|
57 | </childnode> |
---|
58 | <childnode refid="882" relation="include"> |
---|
59 | </childnode> |
---|
60 | </node> |
---|
61 | <node id="879"> |
---|
62 | <label>itpp/itbase.h</label> |
---|
63 | </node> |
---|
64 | <node id="886"> |
---|
65 | <label>../math/chmat.h</label> |
---|
66 | <link refid="chmat_8h"/> |
---|
67 | <childnode refid="879" relation="include"> |
---|
68 | </childnode> |
---|
69 | <childnode refid="884" relation="include"> |
---|
70 | </childnode> |
---|
71 | <childnode refid="885" relation="include"> |
---|
72 | </childnode> |
---|
73 | </node> |
---|
74 | <node id="880"> |
---|
75 | <label>estim/libKF.h</label> |
---|
76 | <link refid="libKF_8h"/> |
---|
77 | <childnode refid="879" relation="include"> |
---|
78 | </childnode> |
---|
79 | <childnode refid="881" relation="include"> |
---|
80 | </childnode> |
---|
81 | <childnode refid="883" relation="include"> |
---|
82 | </childnode> |
---|
83 | <childnode refid="886" relation="include"> |
---|
84 | </childnode> |
---|
85 | </node> |
---|
86 | <node id="884"> |
---|
87 | <label>../math/libDC.h</label> |
---|
88 | <link refid="libDC_8h"/> |
---|
89 | <childnode refid="879" relation="include"> |
---|
90 | </childnode> |
---|
91 | </node> |
---|
92 | </incdepgraph> |
---|
93 | <sectiondef kind="func"> |
---|
94 | <memberdef kind="function" id="testKF__QR_8cpp_1e66f6b31b5ad750f1fe042a706a4e3d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
95 | <type>int</type> |
---|
96 | <definition>int main</definition> |
---|
97 | <argsstring>()</argsstring> |
---|
98 | <name>main</name> |
---|
99 | <briefdescription> |
---|
100 | </briefdescription> |
---|
101 | <detaileddescription> |
---|
102 | </detaileddescription> |
---|
103 | <inbodydescription> |
---|
104 | </inbodydescription> |
---|
105 | <location file="/home/smidl/work/git/mixpp/tests/testKF_QR.cpp" line="11" bodyfile="/home/smidl/work/git/mixpp/tests/testKF_QR.cpp" bodystart="11" bodyend="86"/> |
---|
106 | </memberdef> |
---|
107 | </sectiondef> |
---|
108 | <briefdescription> |
---|
109 | </briefdescription> |
---|
110 | <detaileddescription> |
---|
111 | </detaileddescription> |
---|
112 | <programlisting> |
---|
113 | <codeline lineno="1"><highlight class="preprocessor">#include<sp/><itpp/itbase.h></highlight><highlight class="normal"></highlight></codeline> |
---|
114 | <codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="libKF_8h" kindref="compound" tooltip="Bayesian Filtering for linear Gaussian models (Kalman Filter) and extensions.">estim/libKF.h</ref>></highlight><highlight class="normal"></highlight></codeline> |
---|
115 | <codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="libPF_8h" kindref="compound" tooltip="Bayesian Filtering using stochastic sampling (Particle Filters).">estim/libPF.h</ref>></highlight><highlight class="normal"></highlight></codeline> |
---|
116 | <codeline lineno="4"><highlight class="normal"></highlight></codeline> |
---|
117 | <codeline lineno="5"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">itpp;</highlight></codeline> |
---|
118 | <codeline lineno="6"><highlight class="normal"></highlight></codeline> |
---|
119 | <codeline lineno="7"><highlight class="normal"></highlight><highlight class="comment">//These<sp/>lines<sp/>are<sp/>needed<sp/>for<sp/>use<sp/>of<sp/>cout<sp/>and<sp/>endl</highlight><highlight class="normal"></highlight></codeline> |
---|
120 | <codeline lineno="8"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::cout;</highlight></codeline> |
---|
121 | <codeline lineno="9"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::endl;</highlight></codeline> |
---|
122 | <codeline lineno="10"><highlight class="normal"></highlight></codeline> |
---|
123 | <codeline lineno="11"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="sim__var_8cpp_1e66f6b31b5ad750f1fe042a706a4e3d4" kindref="member" tooltip="Extended Kalman filter with unknown Q.">main</ref>()<sp/>{</highlight></codeline> |
---|
124 | <codeline lineno="12"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Klaman<sp/>filter</highlight><highlight class="normal"></highlight></codeline> |
---|
125 | <codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mat<sp/>A,<sp/>B,C,D,R,Q,P0;</highlight></codeline> |
---|
126 | <codeline lineno="14"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>mu0;</highlight></codeline> |
---|
127 | <codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mat<sp/>Mu0;</highlight><highlight class="comment">//<sp/>read<sp/>from<sp/>matlab</highlight><highlight class="normal"></highlight></codeline> |
---|
128 | <codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>input<sp/>from<sp/>Matlab</highlight><highlight class="normal"></highlight></codeline> |
---|
129 | <codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_file<sp/>fin(<sp/></highlight><highlight class="stringliteral">"testKF.it"</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
130 | <codeline lineno="18"><highlight class="normal"></highlight></codeline> |
---|
131 | <codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mat<sp/>Dt,<sp/>XQRt,eR,eQ;</highlight></codeline> |
---|
132 | <codeline lineno="20"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>Ndat;</highlight></codeline> |
---|
133 | <codeline lineno="21"><highlight class="normal"></highlight></codeline> |
---|
134 | <codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>xxx=<sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"d"</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
135 | <codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!xxx){<sp/>it_error(</highlight><highlight class="stringliteral">"testKF.it<sp/>not<sp/>found"</highlight><highlight class="normal">);}</highlight></codeline> |
---|
136 | <codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin<sp/>>>Dt;</highlight></codeline> |
---|
137 | <codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"A"</highlight><highlight class="normal"><sp/>);<sp/></highlight></codeline> |
---|
138 | <codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin<sp/>>><sp/>A;</highlight></codeline> |
---|
139 | <codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"B"</highlight><highlight class="normal"><sp/>);<sp/></highlight></codeline> |
---|
140 | <codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin<sp/>>><sp/>B;</highlight></codeline> |
---|
141 | <codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"C"</highlight><highlight class="normal"><sp/>);<sp/></highlight></codeline> |
---|
142 | <codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin<sp/>>><sp/>C;</highlight></codeline> |
---|
143 | <codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"D"</highlight><highlight class="normal"><sp/>);<sp/></highlight></codeline> |
---|
144 | <codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin<sp/>>><sp/>D;</highlight></codeline> |
---|
145 | <codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"R"</highlight><highlight class="normal"><sp/>);<sp/></highlight></codeline> |
---|
146 | <codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin<sp/>>><sp/>R;</highlight></codeline> |
---|
147 | <codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"Q"</highlight><highlight class="normal"><sp/>);<sp/>fin<sp/>>><sp/>Q;</highlight></codeline> |
---|
148 | <codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"P0"</highlight><highlight class="normal"><sp/>);<sp/>fin<sp/>>><sp/>P0;</highlight></codeline> |
---|
149 | <codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fin.seek(<sp/></highlight><highlight class="stringliteral">"mu0"</highlight><highlight class="normal"><sp/>);<sp/>fin<sp/>>><sp/>Mu0;<sp/></highlight></codeline> |
---|
150 | <codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mu0=Mu0.get_col(0);</highlight></codeline> |
---|
151 | <codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
152 | <codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Ndat<sp/>=<sp/>Dt.cols();</highlight></codeline> |
---|
153 | <codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XQRt=zeros(<sp/>5,Ndat<sp/>);</highlight></codeline> |
---|
154 | <codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mat<sp/>Xt=zeros(<sp/>2,Ndat<sp/>);</highlight></codeline> |
---|
155 | <codeline lineno="43"><highlight class="normal"></highlight></codeline> |
---|
156 | <codeline lineno="44"><highlight class="normal"></highlight><highlight class="comment">//<sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/>KF;</highlight><highlight class="normal"></highlight></codeline> |
---|
157 | <codeline lineno="45"><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/>rx(</highlight><highlight class="stringliteral">"{x<sp/>}"</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">"2"</highlight><highlight class="normal">);</highlight></codeline> |
---|
158 | <codeline lineno="46"><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/>ru(</highlight><highlight class="stringliteral">"{u<sp/>}"</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">"1"</highlight><highlight class="normal">);</highlight></codeline> |
---|
159 | <codeline lineno="47"><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/>ry(</highlight><highlight class="stringliteral">"{y<sp/>}"</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">"1"</highlight><highlight class="normal">);</highlight></codeline> |
---|
160 | <codeline lineno="48"><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/>rQR(</highlight><highlight class="stringliteral">"{Q,R<sp/>}"</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">"3"</highlight><highlight class="normal">);</highlight></codeline> |
---|
161 | <codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
162 | <codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classKFcondQR" kindref="compound" tooltip="Kalman Filter with conditional diagonal matrices R and Q.">KFcondQR</ref><sp/>KF(rx,ry,ru,rQR);</highlight></codeline> |
---|
163 | <codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>KF<sp/>with<sp/>R<sp/>unknown</highlight><highlight class="normal"></highlight></codeline> |
---|
164 | <codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>KF.set_parameters(A,B,C,D,<ref refid="classldmat" kindref="compound" tooltip="Matrix stored in LD form, (typically known as UD).">ldmat</ref>(R),<ref refid="classldmat" kindref="compound" tooltip="Matrix stored in LD form, (typically known as UD).">ldmat</ref>(Q));</highlight></codeline> |
---|
165 | <codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>KF.set_est(mu0,<ref refid="classldmat" kindref="compound" tooltip="Matrix stored in LD form, (typically known as UD).">ldmat</ref>(P0)<sp/>);</highlight></codeline> |
---|
166 | <codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
167 | <codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classKalman" kindref="compound" tooltip="Kalman filter with covariance matrices in square root form.">Kalman<ldmat></ref><sp/>KFtr(rx,ry,ru);</highlight></codeline> |
---|
168 | <codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>KF<sp/>with<sp/>R<sp/>unknown</highlight><highlight class="normal"></highlight></codeline> |
---|
169 | <codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>KFtr.set_parameters(A,B,C,D,<ref refid="classldmat" kindref="compound" tooltip="Matrix stored in LD form, (typically known as UD).">ldmat</ref>(R),<ref refid="classldmat" kindref="compound" tooltip="Matrix stored in LD form, (typically known as UD).">ldmat</ref>(Q));</highlight></codeline> |
---|
170 | <codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>KFtr.set_est(mu0,<ref refid="classldmat" kindref="compound" tooltip="Matrix stored in LD form, (typically known as UD).">ldmat</ref>(P0)<sp/>);</highlight></codeline> |
---|
171 | <codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
172 | <codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classmgamma" kindref="compound" tooltip="Gamma random walk.">mgamma</ref><sp/>evolQR(rQR,rQR);</highlight></codeline> |
---|
173 | <codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>evolQR.set_parameters(10.0);<sp/></highlight><highlight class="comment">//sigma<sp/>=<sp/>1/10<sp/>mu</highlight><highlight class="normal"></highlight></codeline> |
---|
174 | <codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
175 | <codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classMPF" kindref="compound" tooltip="Marginalized Particle filter.">MPF<KFcondQR ></ref><sp/>KF_QR(rx,rQR,evolQR,evolQR,100,KF);</highlight></codeline> |
---|
176 | <codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>evolQR.condition(</highlight><highlight class="stringliteral">"1<sp/>1<sp/>1"</highlight><highlight class="normal">);</highlight></codeline> |
---|
177 | <codeline lineno="65"><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/>pfinit=evolQR._epdf();</highlight></codeline> |
---|
178 | <codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>KF_QR.set_est(pfinit);</highlight></codeline> |
---|
179 | <codeline lineno="67"><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/>mpost=KF_QR._epdf();</highlight></codeline> |
---|
180 | <codeline lineno="68"><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/>mposttr=KFtr._epdf();</highlight></codeline> |
---|
181 | <codeline lineno="69"><highlight class="normal"></highlight></codeline> |
---|
182 | <codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XQRt.set_col(<sp/>0,mpost.<ref refid="classepdf_1bf0a070a8f3e67a93604ca724638b870" kindref="member" tooltip="return expected value">mean</ref>());</highlight></codeline> |
---|
183 | <codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Xt.set_col(<sp/>0,mposttr.<ref refid="classepdf_1bf0a070a8f3e67a93604ca724638b870" kindref="member" tooltip="return expected value">mean</ref>());</highlight></codeline> |
---|
184 | <codeline lineno="72"><highlight class="normal"><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/>t=1;t<Ndat;t++<sp/>)<sp/>{</highlight></codeline> |
---|
185 | <codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>KF_QR.bayes(<sp/>Dt.get_col(<sp/>t<sp/>));</highlight></codeline> |
---|
186 | <codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>KFtr.bayes(<sp/>Dt.get_col(<sp/>t<sp/>));</highlight></codeline> |
---|
187 | <codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
188 | <codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>XQRt.set_col(t,mpost.<ref refid="classepdf_1bf0a070a8f3e67a93604ca724638b870" kindref="member" tooltip="return expected value">mean</ref>());</highlight></codeline> |
---|
189 | <codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Xt.set_col(t,mposttr.<ref refid="classepdf_1bf0a070a8f3e67a93604ca724638b870" kindref="member" tooltip="return expected value">mean</ref>());</highlight></codeline> |
---|
190 | <codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
191 | <codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
192 | <codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_file<sp/>fou(<sp/></highlight><highlight class="stringliteral">"testKF_QR_res.it"</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
193 | <codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fou<sp/><<<sp/>Name(</highlight><highlight class="stringliteral">"xqrth"</highlight><highlight class="normal">)<sp/><<<sp/>XQRt;</highlight></codeline> |
---|
194 | <codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fou<sp/><<<sp/>Name(</highlight><highlight class="stringliteral">"xth"</highlight><highlight class="normal">)<sp/><<<sp/>Xt;</highlight></codeline> |
---|
195 | <codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//Exit<sp/>program:</highlight><highlight class="normal"></highlight></codeline> |
---|
196 | <codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline> |
---|
197 | <codeline lineno="85"><highlight class="normal"></highlight></codeline> |
---|
198 | <codeline lineno="86"><highlight class="normal">}</highlight></codeline> |
---|
199 | </programlisting> |
---|
200 | <location file="/home/smidl/work/git/mixpp/tests/testKF_QR.cpp"/> |
---|
201 | </compounddef> |
---|
202 | </doxygen> |
---|