root/doc/xml/rv__test_8cpp.xml @ 224

Revision 187, 13.6 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="rv__test_8cpp" kind="file">
4    <compoundname>rv_test.cpp</compoundname>
5    <includes local="no">itpp/itbase.h</includes>
6    <includes refid="libBM_8h" local="yes">../bdm/stat/libBM.h</includes>
7    <includes refid="libDC_8h" local="yes">../bdm/math/libDC.h</includes>
8    <includes refid="chmat_8h" local="yes">../bdm/math/chmat.h</includes>
9    <incdepgraph>
10      <node id="849">
11        <label>../bdm/stat/libBM.h</label>
12        <link refid="libBM_8h"/>
13        <childnode refid="848" relation="include">
14        </childnode>
15      </node>
16      <node id="852">
17        <label>../itpp_ext.h</label>
18        <link refid="itpp__ext_8h-source"/>
19        <childnode refid="848" relation="include">
20        </childnode>
21      </node>
22      <node id="847">
23        <label>work/git/mixpp/tests/rv_test.cpp</label>
24        <link refid="rv_test.cpp"/>
25        <childnode refid="848" relation="include">
26        </childnode>
27        <childnode refid="849" relation="include">
28        </childnode>
29        <childnode refid="850" relation="include">
30        </childnode>
31        <childnode refid="851" relation="include">
32        </childnode>
33      </node>
34      <node id="848">
35        <label>itpp/itbase.h</label>
36      </node>
37      <node id="851">
38        <label>../bdm/math/chmat.h</label>
39        <link refid="chmat_8h"/>
40        <childnode refid="848" relation="include">
41        </childnode>
42        <childnode refid="850" relation="include">
43        </childnode>
44        <childnode refid="852" relation="include">
45        </childnode>
46      </node>
47      <node id="850">
48        <label>../bdm/math/libDC.h</label>
49        <link refid="libDC_8h"/>
50        <childnode refid="848" relation="include">
51        </childnode>
52      </node>
53    </incdepgraph>
54      <sectiondef kind="func">
55      <memberdef kind="function" id="rv__test_8cpp_1e66f6b31b5ad750f1fe042a706a4e3d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
56        <type>int</type>
57        <definition>int main</definition>
58        <argsstring>()</argsstring>
59        <name>main</name>
60        <briefdescription>
61        </briefdescription>
62        <detaileddescription>
63        </detaileddescription>
64        <inbodydescription>
65        </inbodydescription>
66        <location file="/home/smidl/work/git/mixpp/tests/rv_test.cpp" line="13" bodyfile="/home/smidl/work/git/mixpp/tests/rv_test.cpp" bodystart="12" bodyend="49"/>
67      </memberdef>
68      </sectiondef>
69    <briefdescription>
70    </briefdescription>
71    <detaileddescription>
72    </detaileddescription>
73    <programlisting>
74<codeline lineno="1"><highlight class="preprocessor">#include<sp/>&lt;itpp/itbase.h&gt;</highlight><highlight class="normal"></highlight></codeline>
75<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;../bdm/stat/libBM.h&quot;</highlight><highlight class="normal"></highlight></codeline>
76<codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;../bdm/math/libDC.h&quot;</highlight><highlight class="normal"></highlight></codeline>
77<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;../bdm/math/chmat.h&quot;</highlight><highlight class="normal"></highlight></codeline>
78<codeline lineno="5"><highlight class="normal"></highlight></codeline>
79<codeline lineno="6"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">itpp;</highlight></codeline>
80<codeline lineno="7"><highlight class="normal"></highlight></codeline>
81<codeline lineno="8"><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>
82<codeline lineno="9"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::cout;</highlight></codeline>
83<codeline lineno="10"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::endl;</highlight></codeline>
84<codeline lineno="11"><highlight class="normal"></highlight></codeline>
85<codeline lineno="12"><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>()</highlight></codeline>
86<codeline lineno="13"><highlight class="normal">{</highlight></codeline>
87<codeline lineno="14"><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/>a<sp/>=<sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>(<sp/></highlight><highlight class="stringliteral">&quot;{a<sp/>}&quot;</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">&quot;3&quot;</highlight><highlight class="normal">);</highlight></codeline>
88<codeline lineno="15"><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/>b<sp/>=<sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>(<sp/></highlight><highlight class="stringliteral">&quot;{b<sp/>}&quot;</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">&quot;2&quot;</highlight><highlight class="normal">);</highlight></codeline>
89<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/>c<sp/>=<sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>(<sp/></highlight><highlight class="stringliteral">&quot;{c<sp/>}&quot;</highlight><highlight class="normal">);</highlight></codeline>
90<codeline lineno="17"><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/>ef<sp/>=<sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>(</highlight><highlight class="stringliteral">&quot;{e<sp/>f<sp/>}&quot;</highlight><highlight class="normal">);</highlight></codeline>
91<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
92<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;Add<sp/>a<sp/>and<sp/>b&quot;</highlight><highlight class="normal">&lt;&lt;endl;</highlight></codeline>
93<codeline lineno="20"><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/>ab<sp/>=<sp/>a;</highlight></codeline>
94<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ab.<ref refid="classRV_1935790526b630dec4ffefa9ec0c2b6fb" kindref="member" tooltip="Add (concat) another variable to the current one,.">add</ref>(b);</highlight></codeline>
95<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>ab<sp/>&lt;&lt;endl;</highlight></codeline>
96<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
97<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;Concat<sp/>a,b<sp/>and<sp/>c<sp/>&quot;</highlight><highlight class="normal">&lt;&lt;endl;</highlight></codeline>
98<codeline lineno="25"><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/>abc<sp/>=<sp/>concat(ab,c);</highlight></codeline>
99<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>abc<sp/>&lt;&lt;endl;</highlight></codeline>
100<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;Structure<sp/>of<sp/>a,b,c<sp/>&quot;</highlight><highlight class="normal">&lt;&lt;endl;</highlight></codeline>
101<codeline lineno="28"><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/>s<sp/>=abc.<ref refid="classRV_152f3ade796814da627ff5a44d00986be" kindref="member" tooltip="generate str from rv, by expanding sizes">tostr</ref>();</highlight></codeline>
102<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>s.<ref refid="classstr_18c4e7241505999c272eb15e586ba7923" kindref="member">ids</ref><sp/>&lt;&lt;endl;</highlight></codeline>
103<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>s.<ref refid="classstr_1a55be419d33638dd0b2de3ecd64a4f27" kindref="member">times</ref><sp/>&lt;&lt;endl;</highlight></codeline>
104<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
105<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;Find<sp/>a<sp/>in<sp/>abc<sp/>&quot;</highlight><highlight class="normal">&lt;&lt;endl;</highlight></codeline>
106<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>a.<ref refid="classRV_10c493a7a897f4d75682f4264e40779a1" kindref="member" tooltip="Find indexes of self in another rv,.">findself</ref>(abc)&lt;&lt;endl;</highlight></codeline>
107<codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;Find<sp/>abc<sp/>in<sp/>a<sp/>&quot;</highlight><highlight class="normal">&lt;&lt;endl;</highlight></codeline>
108<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>abc.<ref refid="classRV_10c493a7a897f4d75682f4264e40779a1" kindref="member" tooltip="Find indexes of self in another rv,.">findself</ref>(a)&lt;&lt;endl;</highlight></codeline>
109<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
110<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;Subtract<sp/>b<sp/>from<sp/>abc&quot;</highlight><highlight class="normal">&lt;&lt;endl;</highlight></codeline>
111<codeline lineno="38"><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/>ac<sp/>=<sp/>abc.<ref refid="classRV_1a85c47bd838ebbdcb6798d7843e87db2" kindref="member" tooltip="Subtract another variable from the current one.">subt</ref>(b);</highlight></codeline>
112<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>ac<sp/>&lt;&lt;endl;</highlight></codeline>
113<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
114<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;Data<sp/>index<sp/>of<sp/>ac<sp/>in<sp/>abc&quot;</highlight><highlight class="normal">&lt;&lt;endl;</highlight></codeline>
115<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/>&lt;&lt;<sp/>ac.<ref refid="classRV_11844ea0d9c10428f5e0ee1d4d569ef0a" kindref="member" tooltip="generate indeces into">dataind</ref>(abc)<sp/>&lt;&lt;endl;</highlight></codeline>
116<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
117<codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//Exit<sp/>program:</highlight><highlight class="normal"></highlight></codeline>
118<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
119<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//getchar();</highlight><highlight class="normal"></highlight></codeline>
120<codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
121<codeline lineno="48"><highlight class="normal"></highlight></codeline>
122<codeline lineno="49"><highlight class="normal">}</highlight></codeline>
123    </programlisting>
124    <location file="/home/smidl/work/git/mixpp/tests/rv_test.cpp"/>
125  </compounddef>
126</doxygen>
Note: See TracBrowser for help on using the browser.