root/doc/xml/testEpdf_8cpp.xml @ 234

Revision 187, 10.3 kB (checked in by smidl, 16 years ago)

doc

Line 
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="testEpdf_8cpp" kind="file">
4    <compoundname>testEpdf.cpp</compoundname>
5    <includes local="no">itpp/itbase.h</includes>
6    <includes refid="libEF_8h" local="no">stat/libEF.h</includes>
7    <incdepgraph>
8      <node id="861">
9        <label>work/git/mixpp/tests/testEpdf.cpp</label>
10        <link refid="testEpdf.cpp"/>
11        <childnode refid="862" relation="include">
12        </childnode>
13        <childnode refid="863" relation="include">
14        </childnode>
15      </node>
16      <node id="865">
17        <label>libBM.h</label>
18        <link refid="libBM_8h"/>
19        <childnode refid="862" relation="include">
20        </childnode>
21      </node>
22      <node id="866">
23        <label>../itpp_ext.h</label>
24        <link refid="itpp__ext_8h-source"/>
25        <childnode refid="862" relation="include">
26        </childnode>
27      </node>
28      <node id="863">
29        <label>stat/libEF.h</label>
30        <link refid="libEF_8h"/>
31        <childnode refid="862" relation="include">
32        </childnode>
33        <childnode refid="864" relation="include">
34        </childnode>
35        <childnode refid="865" relation="include">
36        </childnode>
37        <childnode refid="866" relation="include">
38        </childnode>
39      </node>
40      <node id="862">
41        <label>itpp/itbase.h</label>
42      </node>
43      <node id="864">
44        <label>../math/libDC.h</label>
45        <link refid="libDC_8h"/>
46        <childnode refid="862" relation="include">
47        </childnode>
48      </node>
49    </incdepgraph>
50      <sectiondef kind="func">
51      <memberdef kind="function" id="testEpdf_8cpp_1e66f6b31b5ad750f1fe042a706a4e3d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
52        <type>int</type>
53        <definition>int main</definition>
54        <argsstring>()</argsstring>
55        <name>main</name>
56        <briefdescription>
57        </briefdescription>
58        <detaileddescription>
59        </detaileddescription>
60        <inbodydescription>
61        </inbodydescription>
62        <location file="/home/smidl/work/git/mixpp/tests/testEpdf.cpp" line="11" bodyfile="/home/smidl/work/git/mixpp/tests/testEpdf.cpp" bodystart="11" bodyend="42"/>
63      </memberdef>
64      </sectiondef>
65    <briefdescription>
66    </briefdescription>
67    <detaileddescription>
68    </detaileddescription>
69    <programlisting>
70<codeline lineno="1"><highlight class="preprocessor">#include<sp/>&lt;itpp/itbase.h&gt;</highlight><highlight class="normal"></highlight></codeline>
71<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="libEF_8h" kindref="compound" tooltip="Probability distributions for Exponential Family models.">stat/libEF.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
72<codeline lineno="3"><highlight class="normal"></highlight></codeline>
73<codeline lineno="4"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">itpp;</highlight></codeline>
74<codeline lineno="5"><highlight class="normal"></highlight></codeline>
75<codeline lineno="6"><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>
76<codeline lineno="7"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::cout;</highlight></codeline>
77<codeline lineno="8"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::endl;</highlight></codeline>
78<codeline lineno="9"><highlight class="normal"></highlight></codeline>
79<codeline lineno="10"><highlight class="normal"></highlight></codeline>
80<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>
81<codeline lineno="12"><highlight class="normal"></highlight></codeline>
82<codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>x<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;-10:0.1:10&quot;</highlight><highlight class="normal">;</highlight></codeline>
83<codeline lineno="14"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>y<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;-10:0.1:10&quot;</highlight><highlight class="normal">;</highlight></codeline>
84<codeline lineno="15"><highlight class="normal"></highlight></codeline>
85<codeline lineno="16"><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/>rv<sp/>(<sp/></highlight><highlight class="stringliteral">&quot;{x<sp/>}&quot;</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">&quot;2&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
86<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>mu0<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;0.0<sp/>0.0&quot;</highlight><highlight class="normal">;</highlight></codeline>
87<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mat<sp/>V0<sp/>(<sp/></highlight><highlight class="stringliteral">&quot;5<sp/>-0.05;<sp/>-0.05<sp/>5.20&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
88<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classfsqmat" kindref="compound" tooltip="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</ref><sp/>R<sp/>=<sp/><ref refid="classfsqmat" kindref="compound" tooltip="Fake sqmat. This class maps sqmat operations to operations on full matrix.">fsqmat</ref><sp/>(<sp/>V0<sp/>);</highlight></codeline>
89<codeline lineno="20"><highlight class="normal"></highlight></codeline>
90<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;======<sp/>ENorm<sp/>======<sp/>&quot;</highlight><highlight class="normal"><sp/>&lt;&lt;endl;</highlight></codeline>
91<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classenorm" kindref="compound" tooltip="Gaussian density with positive definite (decomposed) covariance matrix.">enorm&lt;fsqmat&gt;</ref><sp/>eN<sp/>(<sp/>rv<sp/>);</highlight></codeline>
92<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>eN.set_parameters<sp/>(<sp/>mu0,R<sp/>);</highlight></codeline>
93<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>pdf<sp/>=<sp/>zeros<sp/>(<sp/>x.length()<sp/>);</highlight></codeline>
94<codeline lineno="25"><highlight class="normal"></highlight></codeline>
95<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>pom<sp/>(<sp/>2<sp/>);</highlight></codeline>
96<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>suma=0.0;</highlight></codeline>
97<codeline lineno="28"><highlight class="normal"></highlight></codeline>
98<codeline lineno="29"><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/>i=0;i&lt;x.length();i++<sp/>)<sp/>{</highlight></codeline>
99<codeline lineno="30"><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/>j=0;j&lt;y.length();j++<sp/>)<sp/>{</highlight></codeline>
100<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pom<sp/>(<sp/>0<sp/>)<sp/>=<sp/>x<sp/>(<sp/>i<sp/>);</highlight></codeline>
101<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>pom<sp/>(<sp/>1<sp/>)<sp/>=<sp/>y<sp/>(<sp/>j<sp/>);</highlight></codeline>
102<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>suma+=<sp/>eN.eval<sp/>(<sp/>pom<sp/>);</highlight></codeline>
103<codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
104<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
105<codeline lineno="36"><highlight class="normal"></highlight></codeline>
106<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>suma<sp/>&lt;&lt;endl;</highlight></codeline>
107<codeline lineno="38"><highlight class="normal"></highlight></codeline>
108<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//Exit<sp/>program:</highlight><highlight class="normal"></highlight></codeline>
109<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
110<codeline lineno="41"><highlight class="normal"></highlight></codeline>
111<codeline lineno="42"><highlight class="normal">}</highlight></codeline>
112<codeline lineno="43"><highlight class="normal"></highlight></codeline>
113    </programlisting>
114    <location file="/home/smidl/work/git/mixpp/tests/testEpdf.cpp"/>
115  </compounddef>
116</doxygen>
Note: See TracBrowser for help on using the browser.