Changeset 171 for doc/html/libPF_8h-source.html
- Timestamp:
- 09/24/08 13:08:07 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/libPF_8h-source.html
r162 r171 55 55 <a name="l00071"></a>00071 <a class="code" href="classeEmp.html" title="Weighted empirical density.">eEmp</a> &E; 56 56 <a name="l00072"></a>00072 vec &<a class="code" href="classPF.html#5c87aba508df321ff26536ced64dbb3a" title="pointer into eEmp ">_w</a>; 57 <a name="l00073"></a>00073 Array< epdf*> Coms;57 <a name="l00073"></a>00073 Array<const epdf*> Coms; 58 58 <a name="l00074"></a>00074 <span class="keyword">public</span>: 59 59 <a name="l00075"></a>00075 mpfepdf ( <a class="code" href="classeEmp.html" title="Weighted empirical density.">eEmp</a> &E0, <span class="keyword">const</span> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &rvc ) : … … 64 64 <a name="l00080"></a>00080 }; 65 65 <a name="l00081"></a>00081 66 <a name="l00082"></a>00082 <span class="keywordtype">void</span> set_elements ( <span class="keywordtype">int</span> &i, <span class="keywordtype">double</span> wi, < a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>* ep )66 <a name="l00082"></a>00082 <span class="keywordtype">void</span> set_elements ( <span class="keywordtype">int</span> &i, <span class="keywordtype">double</span> wi, <span class="keyword">const</span> <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>* ep ) 67 67 <a name="l00083"></a>00083 {<a class="code" href="classPF.html#5c87aba508df321ff26536ced64dbb3a" title="pointer into eEmp ">_w</a> ( i ) =wi; Coms ( i ) =ep;}; 68 68 <a name="l00084"></a>00084 … … 94 94 <a name="l00112"></a>00112 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i<n;i++ ) { 95 95 <a name="l00113"></a>00113 Bms[i] = <span class="keyword">new</span> BM_T ( BMcond0 ); <span class="comment">//copy constructor</span> 96 <a name="l00114"></a>00114 < a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& pom=Bms[i]->_epdf();96 <a name="l00114"></a>00114 <span class="keyword">const</span> <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& pom=Bms[i]->_epdf(); 97 97 <a name="l00115"></a>00115 jest.set_elements ( i,1.0/n,&pom ); 98 98 <a name="l00116"></a>00116 } … … 103 103 <a name="l00121"></a>00121 104 104 <a name="l00122"></a>00122 <span class="keywordtype">void</span> <a class="code" href="classMPF.html#55daf8e4b6553dd9f47c692de7931623" title="Incremental Bayes rule.">bayes</a> ( <span class="keyword">const</span> vec &dt ); 105 <a name="l00123"></a><a class="code" href="classMPF.html# 549e08268a46a250f21a33d06f19276a">00123</a> <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& <a class="code" href="classMPF.html#549e08268a46a250f21a33d06f19276a" title="Returns a pointer to the epdf representing posterior density on parameters. Use with...">_epdf</a>(){<span class="keywordflow">return</span> jest;}105 <a name="l00123"></a><a class="code" href="classMPF.html#992e01bb8f06c814cda036796e4a55ae">00123</a> <span class="keyword">const</span> <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& <a class="code" href="classMPF.html#992e01bb8f06c814cda036796e4a55ae" title="Returns a pointer to the epdf representing posterior density on parameters. Use with...">_epdf</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> jest;} 106 106 <a name="l00125"></a><a class="code" href="classMPF.html#7c66e1c1c0e45fc4ae765133cb3a1553">00125</a> <span class="keywordtype">void</span> <a class="code" href="classMPF.html#7c66e1c1c0e45fc4ae765133cb3a1553" title="Set postrior of rvc to samples from epdf0. Statistics of Bms are not re-computed!...">set_est</a> ( <span class="keyword">const</span> <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& epdf0 ) { 107 107 <a name="l00126"></a>00126 <a class="code" href="classPF.html#04d38fbcc0348b558212f530d9ec183e" title="Set posterior density by sampling from epdf0.">PF::set_est</a> ( epdf0 ); <span class="comment">// sample params in condition</span> … … 178 178 <a name="l00197"></a>00197 <span class="keyword">delete</span> Bms[i]; 179 179 <a name="l00198"></a>00198 Bms[i] = <span class="keyword">new</span> BM_T ( *Bms[ind ( i ) ] ); <span class="comment">//copy constructor</span> 180 <a name="l00199"></a>00199 < a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& pom=Bms[i]->_epdf();180 <a name="l00199"></a>00199 <span class="keyword">const</span> <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& pom=Bms[i]->_epdf(); 181 181 <a name="l00200"></a>00200 jest.set_elements ( i,1.0/n,&pom ); 182 182 <a name="l00201"></a>00201 } … … 190 190 <a name="l00209"></a>00209 191 191 </pre></div></div> 192 <hr size="1"><address style="text-align: right;"><small>Generated on T hu Sep 4 19:28:002008 for mixpp by 192 <hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 23 16:00:45 2008 for mixpp by 193 193 <a href="http://www.doxygen.org/index.html"> 194 194 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>