Show
Ignore:
Timestamp:
09/24/08 13:08:07 (16 years ago)
Author:
smidl
Message:

New documentation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/html/libPF_8h-source.html

    r162 r171  
    5555<a name="l00071"></a>00071                 <a class="code" href="classeEmp.html" title="Weighted empirical density.">eEmp</a> &amp;E; 
    5656<a name="l00072"></a>00072                 vec &amp;<a class="code" href="classPF.html#5c87aba508df321ff26536ced64dbb3a" title="pointer into eEmp ">_w</a>; 
    57 <a name="l00073"></a>00073                 Array&lt;epdf*&gt; Coms; 
     57<a name="l00073"></a>00073                 Array&lt;const epdf*&gt; Coms; 
    5858<a name="l00074"></a>00074         <span class="keyword">public</span>: 
    5959<a name="l00075"></a>00075                 mpfepdf ( <a class="code" href="classeEmp.html" title="Weighted empirical density.">eEmp</a> &amp;E0, <span class="keyword">const</span> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rvc ) : 
     
    6464<a name="l00080"></a>00080                 }; 
    6565<a name="l00081"></a>00081  
    66 <a name="l00082"></a>00082                 <span class="keywordtype">void</span> set_elements ( <span class="keywordtype">int</span> &amp;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> &amp;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 ) 
    6767<a name="l00083"></a>00083                 {<a class="code" href="classPF.html#5c87aba508df321ff26536ced64dbb3a" title="pointer into eEmp ">_w</a> ( i ) =wi; Coms ( i ) =ep;}; 
    6868<a name="l00084"></a>00084  
     
    9494<a name="l00112"></a>00112                 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i&lt;n;i++ ) { 
    9595<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>&amp; pom=Bms[i]-&gt;_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>&amp; pom=Bms[i]-&gt;_epdf(); 
    9797<a name="l00115"></a>00115                         jest.set_elements ( i,1.0/n,&amp;pom ); 
    9898<a name="l00116"></a>00116                 } 
     
    103103<a name="l00121"></a>00121  
    104104<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 &amp;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>&amp; <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>&amp; <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;} 
    106106<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>&amp; epdf0 ) { 
    107107<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> 
     
    178178<a name="l00197"></a>00197                                 <span class="keyword">delete</span> Bms[i]; 
    179179<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>&amp; pom=Bms[i]-&gt;_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>&amp; pom=Bms[i]-&gt;_epdf(); 
    181181<a name="l00200"></a>00200                                 jest.set_elements ( i,1.0/n,&amp;pom ); 
    182182<a name="l00201"></a>00201                         } 
     
    190190<a name="l00209"></a>00209  
    191191</pre></div></div> 
    192 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Sep 4 19:28:00 2008 for mixpp by&nbsp; 
     192<hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 23 16:00:45 2008 for mixpp by&nbsp; 
    193193<a href="http://www.doxygen.org/index.html"> 
    194194<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>