Changeset 269 for doc/html/emix_8h-source.html
- Timestamp:
- 02/11/09 14:15:39 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/emix_8h-source.html
r264 r269 151 151 <a name="l00196"></a>00196 <span class="keywordflow">return</span> res; 152 152 <a name="l00197"></a>00197 } 153 <a name="l00198"></a><a class="code" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">00198</a> vec <a class="code" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168" title="Returns a sample from the density conditioned on cond, .">samplecond</a> ( <span class="keyword">const</span> vec &cond, <span class="keywordtype">double</span> &ll ) {153 <a name="l00198"></a><a class="code" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">00198</a> vec <a class="code" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">samplecond</a> ( <span class="keyword">const</span> vec &cond, <span class="keywordtype">double</span> &ll ) { 154 154 <a name="l00200"></a>00200 vec smp= std::numeric_limits<double>::infinity() * ones ( <a class="code" href="classbdm_1_1mpdf.html#9bcfb45435d30983f436d41c298cbb51" title="modeled random variable">rv</a>.<a class="code" href="classbdm_1_1RV.html#2174751a00ce19f941edd2c1a861be67" title="Return number of scalars in the RV.">count</a>() ); 155 155 <a name="l00201"></a>00201 vec smpi; … … 168 168 <a name="l00214"></a>00214 <span class="keywordflow">return</span> smp; 169 169 <a name="l00215"></a>00215 } 170 <a name="l00216"></a>00216 mat <a class="code" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168" title="Returns a sample from the density conditioned on cond, .">samplecond</a> ( <span class="keyword">const</span> vec &cond, vec &ll, <span class="keywordtype">int</span> N ) {170 <a name="l00216"></a>00216 mat <a class="code" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">samplecond</a> ( <span class="keyword">const</span> vec &cond, vec &ll, <span class="keywordtype">int</span> N ) { 171 171 <a name="l00217"></a>00217 mat Smp ( <a class="code" href="classbdm_1_1mpdf.html#9bcfb45435d30983f436d41c298cbb51" title="modeled random variable">rv</a>.<a class="code" href="classbdm_1_1RV.html#2174751a00ce19f941edd2c1a861be67" title="Return number of scalars in the RV.">count</a>(),N ); 172 <a name="l00218"></a>00218 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i<N;i++ ) {Smp.set_col ( i,<a class="code" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168" title="Returns a sample from the density conditioned on cond, .">samplecond</a> ( cond,ll ( i ) ) );}172 <a name="l00218"></a>00218 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i<N;i++ ) {Smp.set_col ( i,<a class="code" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">samplecond</a> ( cond,ll ( i ) ) );} 173 173 <a name="l00219"></a>00219 <span class="keywordflow">return</span> Smp; 174 174 <a name="l00220"></a>00220 } … … 189 189 <a name="l00238"></a>00238 } 190 190 <a name="l00239"></a>00239 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i<<a class="code" href="classbdm_1_1eprod.html#fa0b0981730f0a8339b9ff3e29d78391" title="Components (epdfs).">epdfs</a>.length();i++ ) { 191 <a name="l00240"></a>00240 <a class="code" href="classbdm_1_1eprod.html#a42b1820428ac06eecb6d938cb6896ff" title="Array of indeces.">dls</a> ( i ) = <span class="keyword">new</span> datalink_e2e( <a class="code" href="classbdm_1_1eprod.html#fa0b0981730f0a8339b9ff3e29d78391" title="Components (epdfs).">epdfs</a> ( i )-><a class="code" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21" title="access function, possibly dangerous!">_rv</a>() , <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Identified of the random variable.">rv</a> );191 <a name="l00240"></a>00240 <a class="code" href="classbdm_1_1eprod.html#a42b1820428ac06eecb6d938cb6896ff" title="Array of indeces.">dls</a> ( i ) = <span class="keyword">new</span> <a class="code" href="classbdm_1_1datalink__e2e.html" title="DataLink is a connection between two data vectors Up and Down.">datalink_e2e</a> ( <a class="code" href="classbdm_1_1eprod.html#fa0b0981730f0a8339b9ff3e29d78391" title="Components (epdfs).">epdfs</a> ( i )-><a class="code" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21" title="access function, possibly dangerous!">_rv</a>() , <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Identified of the random variable.">rv</a> ); 192 192 <a name="l00241"></a>00241 } 193 193 <a name="l00242"></a>00242 } … … 254 254 <a name="l00312"></a>00312 <span class="preprocessor">#endif //MX_H</span> 255 255 </pre></div></div> 256 <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 6 19:49:45 2009 for mixpp by 256 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 10:20:05 2009 for mixpp by 257 257 <a href="http://www.doxygen.org/index.html"> 258 258 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>