1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
3 | <title>mixpp: MPF< BM_T > Class Template Reference</title> |
---|
4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.5 --> |
---|
8 | <div class="navigation" id="top"> |
---|
9 | <div class="tabs"> |
---|
10 | <ul> |
---|
11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
13 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
14 | <li><a href="files.html"><span>Files</span></a></li> |
---|
15 | </ul> |
---|
16 | </div> |
---|
17 | <div class="tabs"> |
---|
18 | <ul> |
---|
19 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
20 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
21 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
22 | </ul> |
---|
23 | </div> |
---|
24 | </div> |
---|
25 | <div class="contents"> |
---|
26 | <h1>MPF< BM_T > Class Template Reference</h1><!-- doxytag: class="MPF" --><!-- doxytag: inherits="PF" -->Marginalized Particle filter. |
---|
27 | <a href="#_details">More...</a> |
---|
28 | <p> |
---|
29 | <code>#include <<a class="el" href="libPF_8h-source.html">libPF.h</a>></code> |
---|
30 | <p> |
---|
31 | <div class="dynheader"> |
---|
32 | Inheritance diagram for MPF< BM_T >:</div> |
---|
33 | <div class="dynsection"> |
---|
34 | <p><center><img src="classMPF__inherit__graph.png" border="0" usemap="#MPF_3_01BM__T_01_4__inherit__map" alt="Inheritance graph"></center> |
---|
35 | <map name="MPF_3_01BM__T_01_4__inherit__map"> |
---|
36 | <area shape="rect" href="classPF.html" title="Trivial particle filter with proposal density equal to parameter evolution model..." alt="" coords="40,82,77,106"><area shape="rect" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="39,7,79,31"></map> |
---|
37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
38 | <div class="dynheader"> |
---|
39 | Collaboration diagram for MPF< BM_T >:</div> |
---|
40 | <div class="dynsection"> |
---|
41 | <p><center><img src="classMPF__coll__graph.png" border="0" usemap="#MPF_3_01BM__T_01_4__coll__map" alt="Collaboration graph"></center> |
---|
42 | <map name="MPF_3_01BM__T_01_4__coll__map"> |
---|
43 | <area shape="rect" href="classPF.html" title="Trivial particle filter with proposal density equal to parameter evolution model..." alt="" coords="68,302,105,326"><area shape="rect" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="5,148,45,172"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="68,6,105,30"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="61,198,112,222"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="135,96,180,120"><area shape="rect" href="classeEmp.html" title="Weighted empirical density." alt="" coords="136,198,192,222"><area shape="rect" title="internal class for MPDF providing composition of eEmp with external components" alt="" coords="129,302,292,326"></map> |
---|
44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
45 | |
---|
46 | <p> |
---|
47 | <a href="classMPF-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
48 | <tr><td></td></tr> |
---|
49 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fc5e11e11eec3195e3c6503937bf02bd"></a><!-- doxytag: member="MPF::MPF" ref="fc5e11e11eec3195e3c6503937bf02bd" args="(const RV &rvlin, const RV &rvpf, mpdf &par0, mpdf &obs0, int n, const BM_T &BMcond0)" --> |
---|
51 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classMPF.html#fc5e11e11eec3195e3c6503937bf02bd">MPF</a> (const <a class="el" href="classRV.html">RV</a> &rvlin, const <a class="el" href="classRV.html">RV</a> &rvpf, <a class="el" href="classmpdf.html">mpdf</a> &par0, <a class="el" href="classmpdf.html">mpdf</a> &obs0, int <a class="el" href="classPF.html#2c2f44ed7a4eaa42e07bdb58d503f280">n</a>, const BM_T &BMcond0)</td></tr> |
---|
52 | |
---|
53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
54 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMPF.html#55daf8e4b6553dd9f47c692de7931623">bayes</a> (const vec &dt)</td></tr> |
---|
55 | |
---|
56 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Incremental Bayes rule. <a href="#55daf8e4b6553dd9f47c692de7931623"></a><br></td></tr> |
---|
57 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="549e08268a46a250f21a33d06f19276a"></a><!-- doxytag: member="MPF::_epdf" ref="549e08268a46a250f21a33d06f19276a" args="()" --> |
---|
58 | <a class="el" href="classepdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classMPF.html#549e08268a46a250f21a33d06f19276a">_epdf</a> ()</td></tr> |
---|
59 | |
---|
60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> representing posterior density on parameters. Use with care! <br></td></tr> |
---|
61 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c66e1c1c0e45fc4ae765133cb3a1553"></a><!-- doxytag: member="MPF::set_est" ref="7c66e1c1c0e45fc4ae765133cb3a1553" args="(const epdf &epdf0)" --> |
---|
62 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMPF.html#7c66e1c1c0e45fc4ae765133cb3a1553">set_est</a> (const <a class="el" href="classepdf.html">epdf</a> &epdf0)</td></tr> |
---|
63 | |
---|
64 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set postrior of <code>rvc</code> to samples from epdf0. Statistics of Bms are not re-computed! Use only for initialization! <br></td></tr> |
---|
65 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87b07867fd4c133aa89a18543f68d9f9"></a><!-- doxytag: member="MPF::bayes" ref="87b07867fd4c133aa89a18543f68d9f9" args="(mat Dt)" --> |
---|
66 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#87b07867fd4c133aa89a18543f68d9f9">bayes</a> (mat Dt)</td></tr> |
---|
67 | |
---|
68 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Batch Bayes rule (columns of Dt are observations). <br></td></tr> |
---|
69 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="126bd2595c48e311fc2a7ab72876092a"></a><!-- doxytag: member="MPF::_rv" ref="126bd2595c48e311fc2a7ab72876092a" args="() const " --> |
---|
70 | const <a class="el" href="classRV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#126bd2595c48e311fc2a7ab72876092a">_rv</a> () const </td></tr> |
---|
71 | |
---|
72 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
73 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87f4a547d2c29180be88175e5eab9c88"></a><!-- doxytag: member="MPF::_ll" ref="87f4a547d2c29180be88175e5eab9c88" args="() const " --> |
---|
74 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#87f4a547d2c29180be88175e5eab9c88">_ll</a> () const </td></tr> |
---|
75 | |
---|
76 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
77 | <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> |
---|
78 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="65b869f3cde2e8d3cfcc2752d14d1ca6"></a><!-- doxytag: member="MPF::SSAT" ref="65b869f3cde2e8d3cfcc2752d14d1ca6" args="" --> |
---|
79 | double </td><td class="memItemRight" valign="bottom"><b>SSAT</b></td></tr> |
---|
80 | |
---|
81 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2c2f44ed7a4eaa42e07bdb58d503f280"></a><!-- doxytag: member="MPF::n" ref="2c2f44ed7a4eaa42e07bdb58d503f280" args="" --> |
---|
83 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classPF.html#2c2f44ed7a4eaa42e07bdb58d503f280">n</a></td></tr> |
---|
84 | |
---|
85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">number of particles; <br></td></tr> |
---|
86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a0a09e309da997f63ae8e30d1e9806b"></a><!-- doxytag: member="MPF::est" ref="1a0a09e309da997f63ae8e30d1e9806b" args="" --> |
---|
87 | <a class="el" href="classeEmp.html">eEmp</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPF.html#1a0a09e309da997f63ae8e30d1e9806b">est</a></td></tr> |
---|
88 | |
---|
89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">posterior density <br></td></tr> |
---|
90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5c87aba508df321ff26536ced64dbb3a"></a><!-- doxytag: member="MPF::_w" ref="5c87aba508df321ff26536ced64dbb3a" args="" --> |
---|
91 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPF.html#5c87aba508df321ff26536ced64dbb3a">_w</a></td></tr> |
---|
92 | |
---|
93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointer into <code><a class="el" href="classeEmp.html" title="Weighted empirical density.">eEmp</a></code> <br></td></tr> |
---|
94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf7dad75e31215780a746c30e71ad9c5"></a><!-- doxytag: member="MPF::_samples" ref="cf7dad75e31215780a746c30e71ad9c5" args="" --> |
---|
95 | Array< vec > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPF.html#cf7dad75e31215780a746c30e71ad9c5">_samples</a></td></tr> |
---|
96 | |
---|
97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointer into <code><a class="el" href="classeEmp.html" title="Weighted empirical density.">eEmp</a></code> <br></td></tr> |
---|
98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d92ac103f88f8c21e197e90af5695a09"></a><!-- doxytag: member="MPF::par" ref="d92ac103f88f8c21e197e90af5695a09" args="" --> |
---|
99 | <a class="el" href="classmpdf.html">mpdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPF.html#d92ac103f88f8c21e197e90af5695a09">par</a></td></tr> |
---|
100 | |
---|
101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Parameter evolution model. <br></td></tr> |
---|
102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dd0a687a4515333d6809147335854e77"></a><!-- doxytag: member="MPF::obs" ref="dd0a687a4515333d6809147335854e77" args="" --> |
---|
103 | <a class="el" href="classmpdf.html">mpdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPF.html#dd0a687a4515333d6809147335854e77">obs</a></td></tr> |
---|
104 | |
---|
105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Observation model. <br></td></tr> |
---|
106 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af00f0612fabe66241dd507188cdbf88"></a><!-- doxytag: member="MPF::rv" ref="af00f0612fabe66241dd507188cdbf88" args="" --> |
---|
107 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#af00f0612fabe66241dd507188cdbf88">rv</a></td></tr> |
---|
108 | |
---|
109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Random variable of the posterior. <br></td></tr> |
---|
110 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5623fef6572a08c2b53b8c87b82dc979"></a><!-- doxytag: member="MPF::ll" ref="5623fef6572a08c2b53b8c87b82dc979" args="" --> |
---|
111 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979">ll</a></td></tr> |
---|
112 | |
---|
113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of marginalized data likelihood. <br></td></tr> |
---|
114 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf6fb59b30141074f8ee1e2f43d03129"></a><!-- doxytag: member="MPF::evalll" ref="bf6fb59b30141074f8ee1e2f43d03129" args="" --> |
---|
115 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#bf6fb59b30141074f8ee1e2f43d03129">evalll</a></td></tr> |
---|
116 | |
---|
117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">If true, the filter will compute likelihood of the data record and store it in <code>ll</code> . Set to false if you want to save time. <br></td></tr> |
---|
118 | <tr><td colspan="2"><br><h2>Classes</h2></td></tr> |
---|
119 | <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>mpfepdf</b></td></tr> |
---|
120 | |
---|
121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">internal class for MPDF providing composition of <a class="el" href="classeEmp.html" title="Weighted empirical density.">eEmp</a> with external components <br></td></tr> |
---|
122 | </table> |
---|
123 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
124 | <h3>template<class BM_T><br> |
---|
125 | class MPF< BM_T ></h3> |
---|
126 | |
---|
127 | Marginalized Particle filter. |
---|
128 | <p> |
---|
129 | Trivial version: proposal $=$ parameter evolution, observation model is not used. (it is assumed to be part of <a class="el" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a>). <hr><h2>Member Function Documentation</h2> |
---|
130 | <a class="anchor" name="55daf8e4b6553dd9f47c692de7931623"></a><!-- doxytag: member="MPF::bayes" ref="55daf8e4b6553dd9f47c692de7931623" args="(const vec &dt)" --> |
---|
131 | <div class="memitem"> |
---|
132 | <div class="memproto"> |
---|
133 | <div class="memtemplate"> |
---|
134 | template<class BM_T> </div> |
---|
135 | <table class="memname"> |
---|
136 | <tr> |
---|
137 | <td class="memname">void <a class="el" href="classMPF.html">MPF</a>< BM_T >::bayes </td> |
---|
138 | <td>(</td> |
---|
139 | <td class="paramtype">const vec & </td> |
---|
140 | <td class="paramname"> <em>dt</em> </td> |
---|
141 | <td> ) </td> |
---|
142 | <td width="100%"><code> [inline, virtual]</code></td> |
---|
143 | </tr> |
---|
144 | </table> |
---|
145 | </div> |
---|
146 | <div class="memdoc"> |
---|
147 | |
---|
148 | <p> |
---|
149 | Incremental Bayes rule. |
---|
150 | <p> |
---|
151 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
152 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
153 | <tr><td valign="top"></td><td valign="top"><em>dt</em> </td><td>vector of input data </td></tr> |
---|
154 | </table> |
---|
155 | </dl> |
---|
156 | |
---|
157 | <p>Reimplemented from <a class="el" href="classPF.html#64f636bbd63bea9efd778214e6b631d3">PF</a>.</p> |
---|
158 | |
---|
159 | <p>References <a class="el" href="libPF_8h-source.html#l00040">PF::_samples</a>, <a class="el" href="libPF_8h-source.html#l00038">PF::_w</a>, <a class="el" href="libPF_8h-source.html#l00036">PF::est</a>, <a class="el" href="libPF_8h-source.html#l00034">PF::n</a>, <a class="el" href="libPF_8h-source.html#l00042">PF::par</a>, <a class="el" href="libEF_8cpp-source.html#l00085">eEmp::resample()</a>, and <a class="el" href="libBM_8h-source.html#l00165">mpdf::samplecond()</a>.</p> |
---|
160 | |
---|
161 | </div> |
---|
162 | </div><p> |
---|
163 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
164 | <li>work/mixpp/bdm/estim/<a class="el" href="libPF_8h-source.html">libPF.h</a></ul> |
---|
165 | </div> |
---|
166 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Apr 29 20:46:57 2008 for mixpp by |
---|
167 | <a href="http://www.doxygen.org/index.html"> |
---|
168 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> |
---|
169 | </body> |
---|
170 | </html> |
---|