Changeset 255 for doc/html/ekf__obj_8h-source.html
- Timestamp:
- 01/28/09 10:01:09 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/ekf__obj_8h-source.html
r234 r255 27 27 <a name="l00021"></a>00021 <span class="preprocessor">#include "parametry_motoru.h"</span> 28 28 <a name="l00022"></a>00022 29 <a name="l00023"></a>00023 <span class="keyword">using namespace </span> itpp;29 <a name="l00023"></a>00023 <span class="keyword">using namespace </span>bdm; 30 30 <a name="l00024"></a>00024 31 31 <a name="l00025"></a>00025 <span class="keywordtype">double</span> minQ(<span class="keywordtype">double</span> Q); 32 32 <a name="l00026"></a>00026 33 <a name="l00032"></a><a class="code" href="classEKFfixed.html">00032</a> <span class="keyword">class </span><a class="code" href="classEKFfixed.html" title="Extended Kalman Filter with full matrices in fixed point arithmetic.">EKFfixed</a> : <span class="keyword">public</span> <a class="code" href="class BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a>, <span class="keyword">public</span> <a class="code" href="classBMcond.html" title="Conditional Bayesian Filter.">BMcond</a> {33 <a name="l00032"></a><a class="code" href="classEKFfixed.html">00032</a> <span class="keyword">class </span><a class="code" href="classEKFfixed.html" title="Extended Kalman Filter with full matrices in fixed point arithmetic.">EKFfixed</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a>, <span class="keyword">public</span> <a class="code" href="classbdm_1_1BMcond.html" title="Conditional Bayesian Filter.">BMcond</a> { 34 34 <a name="l00033"></a>00033 <span class="keyword">public</span>: 35 35 <a name="l00034"></a>00034 <span class="keywordtype">void</span> init_ekf(<span class="keywordtype">double</span> Tv); … … 60 60 <a name="l00059"></a>00059 61 61 <a name="l00060"></a>00060 <span class="keywordtype">long</span> temp30a[4]; <span class="comment">/* matrix [2,2] - temporary matrix for inversion */</span> 62 <a name="l00061"></a>00061 <a class="code" href="class enorm.html" title="Gaussian density with positive definite (decomposed) covariance matrix.">enorm<fsqmat></a> E;62 <a name="l00061"></a>00061 <a class="code" href="classbdm_1_1enorm.html" title="Gaussian density with positive definite (decomposed) covariance matrix.">enorm<fsqmat></a> E; 63 63 <a name="l00062"></a>00062 mat Ry; 64 64 <a name="l00063"></a>00063 65 65 <a name="l00064"></a>00064 <span class="keyword">public</span>: 66 <a name="l00066"></a><a class="code" href="classEKFfixed.html#64d7b1a39c27b1846bcd5628928748ef">00066</a> <a class="code" href="classEKFfixed.html#64d7b1a39c27b1846bcd5628928748ef" title="Default constructor.">EKFfixed</a> ( <a class="code" href="class RV.html" title="Class representing variables, most often random variables.">RV</a> rvx,<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classBMcond.html#9ba793c8ec453f04d372d17195ed8dec" title="Identificator of the conditioning variable.">rvc</a> ):<a class="code" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a>(rvx),<a class="code" href="classBMcond.html" title="Conditional Bayesian Filter.">BMcond</a>(rvc),E(rvx),Ry(2,2){66 <a name="l00066"></a><a class="code" href="classEKFfixed.html#64d7b1a39c27b1846bcd5628928748ef">00066</a> <a class="code" href="classEKFfixed.html#64d7b1a39c27b1846bcd5628928748ef" title="Default constructor.">EKFfixed</a> ( <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rvx,<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BMcond.html#9a12750776d977408aada06a70093297" title="Identificator of the conditioning variable.">rvc</a> ):<a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a>(rvx),<a class="code" href="classbdm_1_1BMcond.html" title="Conditional Bayesian Filter.">BMcond</a>(rvc),E(rvx),Ry(2,2){ 67 67 <a name="l00067"></a>00067 <span class="keywordtype">int</span> i; 68 68 <a name="l00068"></a>00068 <span class="keywordflow">for</span>(i=0;i<16;i++){Q[i]=0;} … … 84 84 <a name="l00084"></a>00084 }; 85 85 <a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="classEKFfixed.html#ddf5334bc1207658fd53698fffbac028" title="Here dt = [yt;ut] of appropriate dimensions.">bayes</a> ( <span class="keyword">const</span> vec &dt ); 86 <a name="l00088"></a><a class="code" href="classEKFfixed.html#085cf16c573eda32d8d03619c6c4b518">00088</a> <a class="code" href="class epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& <a class="code" href="classEKFfixed.html#085cf16c573eda32d8d03619c6c4b518" title="dummy!">_epdf</a>(){<span class="keywordflow">return</span> E;};86 <a name="l00088"></a><a class="code" href="classEKFfixed.html#085cf16c573eda32d8d03619c6c4b518">00088</a> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& <a class="code" href="classEKFfixed.html#085cf16c573eda32d8d03619c6c4b518" title="dummy!">_epdf</a>(){<span class="keywordflow">return</span> E;}; 87 87 <a name="l00089"></a><a class="code" href="classEKFfixed.html#c7fee79e75ad7f0c0e96c5a322cbf44e">00089</a> <span class="keywordtype">void</span> <a class="code" href="classEKFfixed.html#c7fee79e75ad7f0c0e96c5a322cbf44e" title="Substitute val for rvc.">condition</a> ( <span class="keyword">const</span> vec &Q0 ) { 88 88 <a name="l00090"></a>00090 … … 100 100 <a name="l00102"></a>00102 101 101 </pre></div></div> 102 <hr size="1"><address style="text-align: right;"><small>Generated on T hu Jan 15 10:50:262009 for mixpp by 102 <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jan 27 16:29:53 2009 for mixpp by 103 103 <a href="http://www.doxygen.org/index.html"> 104 104 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>