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="itpp__ext_8h" kind="file"> |
---|
4 | <compoundname>itpp_ext.h</compoundname> |
---|
5 | <includes local="no">itpp/itbase.h</includes> |
---|
6 | <includedby refid="libEF_8h" local="yes">work/git/mixpp/bdm/stat/libEF.h</includedby> |
---|
7 | <includedby refid="chmat_8h" local="yes">work/git/mixpp/bdm/math/chmat.h</includedby> |
---|
8 | <includedby refid="itpp__ext_8cpp" local="yes">work/git/mixpp/bdm/itpp_ext.cpp</includedby> |
---|
9 | <includedby refid="libBM_8cpp" local="yes">work/git/mixpp/bdm/stat/libBM.cpp</includedby> |
---|
10 | <includedby refid="loggers_8h" local="yes">work/git/mixpp/bdm/stat/loggers.h</includedby> |
---|
11 | <incdepgraph> |
---|
12 | <node id="267"> |
---|
13 | <label>work/git/mixpp/bdm/itpp_ext.h</label> |
---|
14 | <link refid="itpp_ext.h"/> |
---|
15 | <childnode refid="268" relation="include"> |
---|
16 | </childnode> |
---|
17 | </node> |
---|
18 | <node id="268"> |
---|
19 | <label>itpp/itbase.h</label> |
---|
20 | </node> |
---|
21 | </incdepgraph> |
---|
22 | <invincdepgraph> |
---|
23 | <node id="282"> |
---|
24 | <label>work/git/mixpp/bdm/stat/loggers.h</label> |
---|
25 | <link refid="loggers_8h"/> |
---|
26 | <childnode refid="275" relation="include"> |
---|
27 | </childnode> |
---|
28 | <childnode refid="276" relation="include"> |
---|
29 | </childnode> |
---|
30 | <childnode refid="272" relation="include"> |
---|
31 | </childnode> |
---|
32 | </node> |
---|
33 | <node id="280"> |
---|
34 | <label>work/git/mixpp/bdm/stat/merger.h</label> |
---|
35 | <link refid="merger_8h"/> |
---|
36 | </node> |
---|
37 | <node id="279"> |
---|
38 | <label>work/git/mixpp/bdm/stat/emix.h</label> |
---|
39 | <link refid="emix_8h"/> |
---|
40 | <childnode refid="280" relation="include"> |
---|
41 | </childnode> |
---|
42 | <childnode refid="275" relation="include"> |
---|
43 | </childnode> |
---|
44 | </node> |
---|
45 | <node id="274"> |
---|
46 | <label>work/git/mixpp/bdm/estim/ekf_templ.h</label> |
---|
47 | <link refid="ekf__templ_8h"/> |
---|
48 | <childnode refid="275" relation="include"> |
---|
49 | </childnode> |
---|
50 | </node> |
---|
51 | <node id="269"> |
---|
52 | <label>work/git/mixpp/bdm/itpp_ext.h</label> |
---|
53 | <link refid="itpp_ext.h"/> |
---|
54 | <childnode refid="270" relation="include"> |
---|
55 | </childnode> |
---|
56 | <childnode refid="281" relation="include"> |
---|
57 | </childnode> |
---|
58 | <childnode refid="282" relation="include"> |
---|
59 | </childnode> |
---|
60 | </node> |
---|
61 | <node id="270"> |
---|
62 | <label>work/git/mixpp/bdm/stat/libEF.h</label> |
---|
63 | <link refid="libEF_8h"/> |
---|
64 | <childnode refid="271" relation="include"> |
---|
65 | </childnode> |
---|
66 | <childnode refid="273" relation="include"> |
---|
67 | </childnode> |
---|
68 | <childnode refid="278" relation="include"> |
---|
69 | </childnode> |
---|
70 | <childnode refid="279" relation="include"> |
---|
71 | </childnode> |
---|
72 | <childnode refid="280" relation="include"> |
---|
73 | </childnode> |
---|
74 | </node> |
---|
75 | <node id="278"> |
---|
76 | <label>work/git/mixpp/bdm/estim/libPF.h</label> |
---|
77 | <link refid="libPF_8h"/> |
---|
78 | <childnode refid="275" relation="include"> |
---|
79 | </childnode> |
---|
80 | </node> |
---|
81 | <node id="271"> |
---|
82 | <label>work/git/mixpp/bdm/estim/arx.h</label> |
---|
83 | <link refid="arx_8h"/> |
---|
84 | <childnode refid="272" relation="include"> |
---|
85 | </childnode> |
---|
86 | </node> |
---|
87 | <node id="272"> |
---|
88 | <label>work/git/mixpp/pmsm/sim_var_arx.cpp</label> |
---|
89 | <link refid="sim__var__arx_8cpp"/> |
---|
90 | </node> |
---|
91 | <node id="276"> |
---|
92 | <label>work/git/mixpp/pmsm/sim_var.cpp</label> |
---|
93 | <link refid="sim__var_8cpp"/> |
---|
94 | </node> |
---|
95 | <node id="281"> |
---|
96 | <label>work/git/mixpp/bdm/math/chmat.h</label> |
---|
97 | <link refid="chmat_8h"/> |
---|
98 | <childnode refid="273" relation="include"> |
---|
99 | </childnode> |
---|
100 | <childnode refid="276" relation="include"> |
---|
101 | </childnode> |
---|
102 | </node> |
---|
103 | <node id="273"> |
---|
104 | <label>work/git/mixpp/bdm/estim/libKF.h</label> |
---|
105 | <link refid="libKF_8h"/> |
---|
106 | <childnode refid="274" relation="include"> |
---|
107 | </childnode> |
---|
108 | <childnode refid="276" relation="include"> |
---|
109 | </childnode> |
---|
110 | <childnode refid="277" relation="include"> |
---|
111 | </childnode> |
---|
112 | </node> |
---|
113 | <node id="277"> |
---|
114 | <label>work/git/mixpp/pmsm/simulator_zdenek/ekf_example/ekf_obj.h</label> |
---|
115 | <link refid="ekf__obj_8h"/> |
---|
116 | </node> |
---|
117 | <node id="275"> |
---|
118 | <label>work/git/mixpp/pmsm/pmsm_mix.cpp</label> |
---|
119 | <link refid="pmsm__mix_8cpp"/> |
---|
120 | </node> |
---|
121 | </invincdepgraph> |
---|
122 | <innerclass refid="classitpp_1_1Gamma__RNG" prot="public">itpp::Gamma_RNG</innerclass> |
---|
123 | <innernamespace refid="namespaceitpp">itpp</innernamespace> |
---|
124 | <briefdescription> |
---|
125 | </briefdescription> |
---|
126 | <detaileddescription> |
---|
127 | </detaileddescription> |
---|
128 | <programlisting> |
---|
129 | <codeline lineno="1"><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
130 | <codeline lineno="2"><highlight class="normal"></highlight><highlight class="comment">//<sp/>C++<sp/>Interface:<sp/>itpp_ext</highlight><highlight class="normal"></highlight></codeline> |
---|
131 | <codeline lineno="3"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
132 | <codeline lineno="4"><highlight class="normal"></highlight><highlight class="comment">//<sp/>Description:</highlight><highlight class="normal"></highlight></codeline> |
---|
133 | <codeline lineno="5"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
134 | <codeline lineno="6"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
135 | <codeline lineno="7"><highlight class="normal"></highlight><highlight class="comment">//<sp/>Author:<sp/>smidl<sp/><smidl@utia.cas.cz>,<sp/>(C)<sp/>2008</highlight><highlight class="normal"></highlight></codeline> |
---|
136 | <codeline lineno="8"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
137 | <codeline lineno="9"><highlight class="normal"></highlight><highlight class="comment">//<sp/>Copyright:<sp/>See<sp/>COPYING<sp/>file<sp/>that<sp/>comes<sp/>with<sp/>this<sp/>distribution</highlight><highlight class="normal"></highlight></codeline> |
---|
138 | <codeline lineno="10"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
139 | <codeline lineno="11"><highlight class="normal"></highlight><highlight class="comment">//</highlight><highlight class="normal"></highlight></codeline> |
---|
140 | <codeline lineno="12"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><itpp/itbase.h></highlight><highlight class="normal"></highlight></codeline> |
---|
141 | <codeline lineno="13"><highlight class="normal"></highlight></codeline> |
---|
142 | <codeline lineno="14"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>ITEX_H</highlight></codeline> |
---|
143 | <codeline lineno="15"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>ITEX_H</highlight></codeline> |
---|
144 | <codeline lineno="16"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> |
---|
145 | <codeline lineno="17"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::cout;</highlight></codeline> |
---|
146 | <codeline lineno="18"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::endl;</highlight></codeline> |
---|
147 | <codeline lineno="19"><highlight class="normal"></highlight></codeline> |
---|
148 | <codeline lineno="20"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">itpp<sp/>{</highlight></codeline> |
---|
149 | <codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Array<int><sp/>to_Arr<sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>ivec<sp/>&indices<sp/>);</highlight></codeline> |
---|
150 | <codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ivec<sp/>linspace<sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>from,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>to<sp/>);</highlight></codeline> |
---|
151 | <codeline lineno="23"><highlight class="normal"></highlight></codeline> |
---|
152 | <codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>bvec<sp/>operator&<sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>bvec<sp/>&a,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>bvec<sp/>&b<sp/>);</highlight></codeline> |
---|
153 | <codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>bvec<sp/>operator|<sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>bvec<sp/>&a,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>bvec<sp/>&b<sp/>);</highlight></codeline> |
---|
154 | <codeline lineno="26"><highlight class="normal"></highlight></codeline> |
---|
155 | <codeline lineno="27"><highlight class="normal"></highlight><highlight class="comment">//<sp/>template<class<sp/>Num_T></highlight><highlight class="normal"></highlight></codeline> |
---|
156 | <codeline lineno="28"><highlight class="normal"></highlight><highlight class="comment">//<sp/>void<sp/>set_subvector(vec<sp/>&ov,<sp/>ivec<sp/>&iv,<sp/>const<sp/>Vec<Num_T><sp/>&v);</highlight><highlight class="normal"></highlight></codeline> |
---|
157 | <codeline lineno="29"><highlight class="normal"></highlight></codeline> |
---|
158 | <codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>set_subvector<sp/>(<sp/>vec<sp/>&ov,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>ivec<sp/>&iv,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&v<sp/>);</highlight></codeline> |
---|
159 | <codeline lineno="31"><highlight class="normal"></highlight></codeline> |
---|
160 | <codeline lineno="36" refid="classitpp_1_1Gamma__RNG" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classitpp_1_1Gamma__RNG" kindref="compound" tooltip="Gamma distribution.">Gamma_RNG</ref><sp/>{</highlight></codeline> |
---|
161 | <codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
162 | <codeline lineno="39"><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/><ref refid="classitpp_1_1Gamma__RNG_1e132860f825f427d63652edd02c25b54" kindref="member" tooltip="constructor. Set lambda.">Gamma_RNG</ref><sp/>(<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>a=1.0,<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>b=1.0<sp/>);</highlight></codeline> |
---|
163 | <codeline lineno="41" refid="classitpp_1_1Gamma__RNG_1dfaae19411e39aa87e1f72e409b6babe" refkind="member"><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/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classitpp_1_1Gamma__RNG_1dfaae19411e39aa87e1f72e409b6babe" kindref="member" tooltip="Set lambda.">setup</ref><sp/>(<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>a0,<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>b0<sp/>)<sp/>{<sp/>alpha=a0;<sp/>beta=b0;}</highlight></codeline> |
---|
164 | <codeline lineno="43"><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/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="classitpp_1_1Gamma__RNG_18e666953249038f262cece2d3ed952d6" kindref="member" tooltip="get lambda">get_setup</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
---|
165 | <codeline lineno="45" refid="classitpp_1_1Gamma__RNG_198e2e65456bca33fca602b2bd607235e" refkind="member"><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/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="classitpp_1_1Gamma__RNG_198e2e65456bca33fca602b2bd607235e" kindref="member" tooltip="Get one sample.">operator() </ref>()<sp/>{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>sample();<sp/>}</highlight></codeline> |
---|
166 | <codeline lineno="47"><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/>vec<sp/><ref refid="classitpp_1_1Gamma__RNG_198e2e65456bca33fca602b2bd607235e" kindref="member" tooltip="Get one sample.">operator() </ref>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n<sp/>);</highlight></codeline> |
---|
167 | <codeline lineno="49"><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/>mat<sp/><ref refid="classitpp_1_1Gamma__RNG_198e2e65456bca33fca602b2bd607235e" kindref="member" tooltip="Get one sample.">operator() </ref>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>h,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>w<sp/>);</highlight></codeline> |
---|
168 | <codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
169 | <codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
---|
170 | <codeline lineno="53"><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/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>sample();</highlight></codeline> |
---|
171 | <codeline lineno="55"><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/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>alpha;</highlight></codeline> |
---|
172 | <codeline lineno="57"><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/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>beta;</highlight></codeline> |
---|
173 | <codeline lineno="59"><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/>Random_Generator<sp/>RNG;</highlight></codeline> |
---|
174 | <codeline lineno="60"><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/>Normal_RNG<sp/>NRNG;</highlight></codeline> |
---|
175 | <codeline lineno="62"><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/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>exp_rand()<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>-std::log<sp/>(<sp/>RNG.random_01()<sp/>);}</highlight></codeline> |
---|
176 | <codeline lineno="63"><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/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>unif_rand()<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>RNG.random_01();}</highlight></codeline> |
---|
177 | <codeline lineno="64"><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/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>norm_rand()<sp/>{</highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NRNG.sample();}</highlight></codeline> |
---|
178 | <codeline lineno="65"><highlight class="normal"></highlight></codeline> |
---|
179 | <codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>};</highlight></codeline> |
---|
180 | <codeline lineno="67"><highlight class="normal"></highlight></codeline> |
---|
181 | <codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>qr<sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>mat<sp/>&A,<sp/>mat<sp/>&R<sp/>);</highlight></codeline> |
---|
182 | <codeline lineno="69"><highlight class="normal"></highlight></codeline> |
---|
183 | <codeline lineno="70"><highlight class="normal">}</highlight></codeline> |
---|
184 | <codeline lineno="71"><highlight class="normal"></highlight></codeline> |
---|
185 | <codeline lineno="72"><highlight class="normal"></highlight></codeline> |
---|
186 | <codeline lineno="73"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/>//ITEX_H</highlight></codeline> |
---|
187 | </programlisting> |
---|
188 | <location file="/home/smidl/work/git/mixpp/bdm/itpp_ext.h"/> |
---|
189 | </compounddef> |
---|
190 | </doxygen> |
---|