Changeset 271 for doc/html/mixef_8h-source.html
- Timestamp:
- 02/16/09 10:03:13 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/mixef_8h-source.html
r270 r271 6 6 </head><body> 7 7 <!-- Generated by Doxygen 1.5.6 --> 8 <script type="text/javascript"> 9 <!-- 10 function changeDisplayState (e){ 11 var num=this.id.replace(/[^[0-9]/g,''); 12 var button=this.firstChild; 13 var sectionDiv=document.getElementById('dynsection'+num); 14 if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ 15 sectionDiv.style.display='block'; 16 button.src='open.gif'; 17 }else{ 18 sectionDiv.style.display='none'; 19 button.src='closed.gif'; 20 } 21 } 22 function initDynSections(){ 23 var divs=document.getElementsByTagName('div'); 24 var sectionCounter=1; 25 for(var i=0;i<divs.length-1;i++){ 26 if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ 27 var header=divs[i]; 28 var section=divs[i+1]; 29 var button=header.firstChild; 30 if (button!='IMG'){ 31 divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); 32 button=document.createElement('img'); 33 divs[i].insertBefore(button,divs[i].firstChild); 34 } 35 header.style.cursor='pointer'; 36 header.onclick=changeDisplayState; 37 header.id='dynheader'+sectionCounter; 38 button.src='closed.gif'; 39 section.id='dynsection'+sectionCounter; 40 section.style.display='none'; 41 section.style.marginLeft='14px'; 42 sectionCounter++; 43 } 44 } 45 } 46 window.onload = initDynSections; 47 --> 48 </script> 8 49 <div class="navigation" id="top"> 9 50 <div class="tabs"> 10 51 <ul> 11 <li><a href=" index.html"><span>Main Page</span></a></li>52 <li><a href="main.html"><span>Main Page</span></a></li> 12 53 <li><a href="pages.html"><span>Related Pages</span></a></li> 13 54 <li><a href="modules.html"><span>Modules</span></a></li> 14 <li><a href="namespaces.html"><span>Namespaces</span></a></li>15 55 <li><a href="classes.html"><span>Classes</span></a></li> 16 56 <li class="current"><a href="files.html"><span>Files</span></a></li> … … 43 83 <a name="l00059"></a>00059 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i<<a class="code" href="classbdm_1_1MixEF.html#90c21ab5a2af56d4b49e2eaef6eccc08" title="Models for Components of .">Coms</a>.length();i++ ) { 44 84 <a name="l00060"></a>00060 <span class="comment">// it_assert_debug(!x,"MixEF::MixEF : Incompatible components");</span> 45 <a name="l00061"></a>00061 epdfs ( i ) =& ( <a class="code" href="classbdm_1_1MixEF.html#90c21ab5a2af56d4b49e2eaef6eccc08" title="Models for Components of .">Coms</a> ( i )-> _epdf() );85 <a name="l00061"></a>00061 epdfs ( i ) =& ( <a class="code" href="classbdm_1_1MixEF.html#90c21ab5a2af56d4b49e2eaef6eccc08" title="Models for Components of .">Coms</a> ( i )->posterior() ); 46 86 <a name="l00062"></a>00062 } 47 87 <a name="l00063"></a>00063 <span class="comment">// last in the product is the weight</span> 48 <a name="l00064"></a>00064 epdfs ( <a class="code" href="classbdm_1_1MixEF.html#38ca1d86e977d1c38810a3c95bf074a5" title="Number of components.">n</a> ) =& ( <a class="code" href="classbdm_1_1MixEF.html#e39faa70cebadc3296bd249040105e86" title="Statistics for weights.">weights</a>.<a class="code" href="classbdm_1_1multiBM.html# 98c22316ecfef589989baca261713c8d">_epdf</a>() );88 <a name="l00064"></a>00064 epdfs ( <a class="code" href="classbdm_1_1MixEF.html#38ca1d86e977d1c38810a3c95bf074a5" title="Number of components.">n</a> ) =& ( <a class="code" href="classbdm_1_1MixEF.html#e39faa70cebadc3296bd249040105e86" title="Statistics for weights.">weights</a>.<a class="code" href="classbdm_1_1multiBM.html#cd682a9a179e6c42a5d28e71c2a2cbfa">posterior</a>() ); 49 89 <a name="l00065"></a>00065 <a class="code" href="classbdm_1_1MixEF.html#9413fb7f1836237aac807fb9f245e4f6" title="Posterior on component parameters.">est</a> = <span class="keyword">new</span> <a class="code" href="classbdm_1_1eprod.html" title="Product of independent epdfs. For dependent pdfs, use mprod.">eprod</a> ( epdfs ); 50 90 <a name="l00066"></a>00066 } … … 79 119 <a name="l00104"></a>00104 <span class="keywordtype">void</span> bayesB ( <span class="keyword">const</span> mat &dt, <span class="keyword">const</span> vec &wData ); 80 120 <a name="l00105"></a>00105 <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1MixEF.html#da724da464a75e07521941e430929efa">logpred</a> ( <span class="keyword">const</span> vec &dt ) <span class="keyword">const</span>; 81 <a name="l00106"></a>00106 <span class="keyword">const</span> epdf& _epdf()<span class="keyword"> const </span>{<span class="keywordflow">return</span> *<a class="code" href="classbdm_1_1MixEF.html#9413fb7f1836237aac807fb9f245e4f6" title="Posterior on component parameters.">est</a>;}121 <a name="l00106"></a>00106 <span class="keyword">const</span> epdf& posterior()<span class="keyword"> const </span>{<span class="keywordflow">return</span> *<a class="code" href="classbdm_1_1MixEF.html#9413fb7f1836237aac807fb9f245e4f6" title="Posterior on component parameters.">est</a>;} 82 122 <a name="l00107"></a>00107 <span class="keyword">const</span> eprod* _e()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classbdm_1_1MixEF.html#9413fb7f1836237aac807fb9f245e4f6" title="Posterior on component parameters.">est</a>;} 83 123 <a name="l00108"></a>00108 emix* <a class="code" href="classbdm_1_1MixEF.html#edc50e9640f049b846084748b18469a2" title="Constructs a predictive density .">epredictor</a>() <span class="keyword">const</span>; … … 93 133 <a name="l00121"></a>00121 94 134 </pre></div></div> 95 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 23:33:552009 for mixpp by 135 <hr size="1"><address style="text-align: right;"><small>Generated on Sun Feb 15 23:09:24 2009 for mixpp by 96 136 <a href="http://www.doxygen.org/index.html"> 97 137 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>