[259] | 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: bdm::mlnorm< sq_T > Class Template Reference</title> |
---|
| 4 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
[290] | 5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
[259] | 6 | </head><body> |
---|
[290] | 7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
[271] | 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> |
---|
[259] | 49 | <div class="navigation" id="top"> |
---|
| 50 | <div class="tabs"> |
---|
| 51 | <ul> |
---|
[271] | 52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
[290] | 55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 56 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 57 | </ul> |
---|
| 58 | </div> |
---|
| 59 | <div class="tabs"> |
---|
| 60 | <ul> |
---|
| 61 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 63 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 64 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 65 | </ul> |
---|
| 66 | </div> |
---|
[271] | 67 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mlnorm.html">mlnorm</a> |
---|
[259] | 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
[290] | 71 | <h1>bdm::mlnorm< sq_T > Class Template Reference</h1><!-- doxytag: class="bdm::mlnorm" --><!-- doxytag: inherits="bdm::mEF" -->Normal distributed linear function with linear function of mean value;. |
---|
| 72 | <a href="#_details">More...</a> |
---|
[259] | 73 | <p> |
---|
[290] | 74 | <code>#include <<a class="el" href="libEF_8h-source.html">libEF.h</a>></code> |
---|
[259] | 75 | <p> |
---|
[270] | 76 | |
---|
| 77 | <p> |
---|
[290] | 78 | <a href="classbdm_1_1mlnorm-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[259] | 79 | <tr><td></td></tr> |
---|
| 80 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[271] | 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#0dafc0196e7e07fd06dc6716e0e18bc2">condition</a> (const vec &cond)</td></tr> |
---|
[259] | 82 | |
---|
| 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56e587952f94fcac6cfc999eae6dbced"></a><!-- doxytag: member="bdm::mlnorm::_mu_const" ref="56e587952f94fcac6cfc999eae6dbced" args="()" --> |
---|
| 84 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#56e587952f94fcac6cfc999eae6dbced">_mu_const</a> ()</td></tr> |
---|
| 85 | |
---|
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="262a2a486bff585f34bb6a5005b02614"></a><!-- doxytag: member="bdm::mlnorm::_A" ref="262a2a486bff585f34bb6a5005b02614" args="()" --> |
---|
| 88 | mat & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#262a2a486bff585f34bb6a5005b02614">_A</a> ()</td></tr> |
---|
| 89 | |
---|
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78120ecd1c2b1d7e80124b4603504604"></a><!-- doxytag: member="bdm::mlnorm::_R" ref="78120ecd1c2b1d7e80124b4603504604" args="()" --> |
---|
| 92 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#78120ecd1c2b1d7e80124b4603504604">_R</a> ()</td></tr> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[271] | 95 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2dcc06a3dd71f038efbe14dc34d937ae"></a><!-- doxytag: member="bdm::mlnorm::mlnorm" ref="2dcc06a3dd71f038efbe14dc34d937ae" args="()" --> |
---|
| 97 | </td><td class="memItemRight" valign="bottom"><b>mlnorm</b> ()</td></tr> |
---|
| 98 | |
---|
| 99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf7edd1aea62178d7b5e555df261542d"></a><!-- doxytag: member="bdm::mlnorm::mlnorm" ref="cf7edd1aea62178d7b5e555df261542d" args="(const mat &A, const vec &mu0, const sq_T &R)" --> |
---|
| 100 | </td><td class="memItemRight" valign="bottom"><b>mlnorm</b> (const mat &A, const vec &mu0, const sq_T &R)</td></tr> |
---|
| 101 | |
---|
| 102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d18dec3167584338a4775c1d165d96f"></a><!-- doxytag: member="bdm::mlnorm::set_parameters" ref="5d18dec3167584338a4775c1d165d96f" args="(const mat &A, const vec &mu0, const sq_T &R)" --> |
---|
| 103 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#5d18dec3167584338a4775c1d165d96f">set_parameters</a> (const mat &A, const vec &mu0, const sq_T &R)</td></tr> |
---|
| 104 | |
---|
| 105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr> |
---|
[270] | 106 | <tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr> |
---|
[269] | 107 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#f0c1db6fcbb3aae2dd6123884457a367">samplecond</a> (const vec &cond)</td></tr> |
---|
[259] | 108 | |
---|
[323] | 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_50.png">. <a href="#f0c1db6fcbb3aae2dd6123884457a367"></a><br></td></tr> |
---|
[270] | 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#afe4185b26baeb03688202e254d3b005">samplecond_m</a> (const vec &cond, int N)</td></tr> |
---|
[259] | 111 | |
---|
[270] | 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#afe4185b26baeb03688202e254d3b005"></a><br></td></tr> |
---|
[259] | 113 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6336a8a72462e2a56a3989a220f18b1b"></a><!-- doxytag: member="bdm::mlnorm::evallogcond" ref="6336a8a72462e2a56a3989a220f18b1b" args="(const vec &dt, const vec &cond)" --> |
---|
| 114 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#6336a8a72462e2a56a3989a220f18b1b">evallogcond</a> (const vec &dt, const vec &cond)</td></tr> |
---|
| 115 | |
---|
| 116 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for conditioning and evaluation of the internal <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. In some cases, this operation can be implemented efficiently. <br></td></tr> |
---|
| 117 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0b0ed1ed663071bb7cf4a1349eb94fcb"></a><!-- doxytag: member="bdm::mlnorm::evallogcond_m" ref="0b0ed1ed663071bb7cf4a1349eb94fcb" args="(const mat &Dt, const vec &cond)" --> |
---|
| 118 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#0b0ed1ed663071bb7cf4a1349eb94fcb">evallogcond_m</a> (const mat &Dt, const vec &cond)</td></tr> |
---|
| 119 | |
---|
| 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> |
---|
[270] | 121 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
| 122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5571482d150fbcb72cc36f6694ce1a10"></a><!-- doxytag: member="bdm::mlnorm::_rv" ref="5571482d150fbcb72cc36f6694ce1a10" args="()" --> |
---|
| 123 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rv</b> ()</td></tr> |
---|
[259] | 124 | |
---|
[270] | 125 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26001264236846897bd11e4baad47245"></a><!-- doxytag: member="bdm::mlnorm::_rvc" ref="26001264236846897bd11e4baad47245" args="()" --> |
---|
| 126 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rvc</b> ()</td></tr> |
---|
[259] | 127 | |
---|
[270] | 128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c2bae3e1e90874e72941863974ec0ed"></a><!-- doxytag: member="bdm::mlnorm::dimension" ref="1c2bae3e1e90874e72941863974ec0ed" args="()" --> |
---|
| 129 | int </td><td class="memItemRight" valign="bottom"><b>dimension</b> ()</td></tr> |
---|
| 130 | |
---|
| 131 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mlnorm::dimensionc" ref="35e135910aed187b7290742f50e61bc8" args="()" --> |
---|
| 132 | int </td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr> |
---|
| 133 | |
---|
[259] | 134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1892fe3933488942253679f068e9e7f6"></a><!-- doxytag: member="bdm::mlnorm::_epdf" ref="1892fe3933488942253679f068e9e7f6" args="()" --> |
---|
[270] | 135 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><b>_epdf</b> ()</td></tr> |
---|
[259] | 136 | |
---|
| 137 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e843fd11c410a99dad2b88c55aca80"></a><!-- doxytag: member="bdm::mlnorm::_e" ref="05e843fd11c410a99dad2b88c55aca80" args="()" --> |
---|
[270] | 138 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><b>_e</b> ()</td></tr> |
---|
[259] | 139 | |
---|
[270] | 140 | <tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr> |
---|
| 141 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mlnorm::set_rvc" ref="7631a5570e4ade1420065e8df78f4401" args="(const RV &rvc0)" --> |
---|
| 142 | void </td><td class="memItemRight" valign="bottom"><b>set_rvc</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rvc0)</td></tr> |
---|
| 143 | |
---|
| 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mlnorm::set_rv" ref="18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &rv0)" --> |
---|
| 145 | void </td><td class="memItemRight" valign="bottom"><b>set_rv</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0)</td></tr> |
---|
| 146 | |
---|
| 147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mlnorm::isnamed" ref="f8e3798150b42fd1f3e16ddbbe0e7045" args="()" --> |
---|
| 148 | bool </td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr> |
---|
| 149 | |
---|
[259] | 150 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="150ad6acb223b0a0abeaf92346686dcd"></a><!-- doxytag: member="bdm::mlnorm::epdf" ref="150ad6acb223b0a0abeaf92346686dcd" args="" --> |
---|
| 152 | <a class="el" href="classbdm_1_1enorm.html">enorm</a>< sq_T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#150ad6acb223b0a0abeaf92346686dcd">epdf</a></td></tr> |
---|
| 153 | |
---|
| 154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Internal <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> that arise by conditioning on <code>rvc</code>. <br></td></tr> |
---|
| 155 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8207ae86d1722102897e139a23e29af8"></a><!-- doxytag: member="bdm::mlnorm::A" ref="8207ae86d1722102897e139a23e29af8" args="" --> |
---|
| 156 | mat </td><td class="memItemRight" valign="bottom"><b>A</b></td></tr> |
---|
| 157 | |
---|
| 158 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a019144d414d1737aea331ffe1c3845"></a><!-- doxytag: member="bdm::mlnorm::mu_const" ref="3a019144d414d1737aea331ffe1c3845" args="" --> |
---|
| 159 | vec </td><td class="memItemRight" valign="bottom"><b>mu_const</b></td></tr> |
---|
| 160 | |
---|
| 161 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dea5ea658d5020c11da91275f592244b"></a><!-- doxytag: member="bdm::mlnorm::_mu" ref="dea5ea658d5020c11da91275f592244b" args="" --> |
---|
| 162 | vec & </td><td class="memItemRight" valign="bottom"><b>_mu</b></td></tr> |
---|
| 163 | |
---|
[270] | 164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mlnorm::dimc" ref="7c1900976ff13dbc09c9729b3bbff9e6" args="" --> |
---|
| 165 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr> |
---|
[259] | 166 | |
---|
[270] | 167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the condition <br></td></tr> |
---|
[259] | 168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mlnorm::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" --> |
---|
| 169 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a></td></tr> |
---|
| 170 | |
---|
| 171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
| 172 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5eea43c56d38e4441bfb30270db949c0"></a><!-- doxytag: member="bdm::mlnorm::ep" ref="5eea43c56d38e4441bfb30270db949c0" args="" --> |
---|
| 173 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#5eea43c56d38e4441bfb30270db949c0">ep</a></td></tr> |
---|
| 174 | |
---|
| 175 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointer to internal <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> <br></td></tr> |
---|
| 176 | <tr><td colspan="2"><br><h2>Friends</h2></td></tr> |
---|
| 177 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="1917009347bb410f73bf827df8767b09"></a><!-- doxytag: member="bdm::mlnorm::operator<<" ref="1917009347bb410f73bf827df8767b09" args="(std::ostream &os, mlnorm< sq_M > &ml)" --> |
---|
[290] | 178 | template<class sq_M > </td></tr> |
---|
[259] | 179 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">std::ostream & </td><td class="memTemplItemRight" valign="bottom"><b>operator<<</b> (std::ostream &os, <a class="el" href="classbdm_1_1mlnorm.html">mlnorm</a>< sq_M > &ml)</td></tr> |
---|
| 180 | |
---|
| 181 | </table> |
---|
[290] | 182 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 183 | <h3>template<class sq_T><br> |
---|
| 184 | class bdm::mlnorm< sq_T ></h3> |
---|
| 185 | |
---|
| 186 | Normal distributed linear function with linear function of mean value;. |
---|
| 187 | <p> |
---|
[323] | 188 | Mean value <img class="formulaInl" alt="$mu=A*rvc+mu_0$" src="form_67.png">. <hr><h2>Member Function Documentation</h2> |
---|
[271] | 189 | <a class="anchor" name="0dafc0196e7e07fd06dc6716e0e18bc2"></a><!-- doxytag: member="bdm::mlnorm::condition" ref="0dafc0196e7e07fd06dc6716e0e18bc2" args="(const vec &cond)" --> |
---|
| 190 | <div class="memitem"> |
---|
| 191 | <div class="memproto"> |
---|
| 192 | <div class="memtemplate"> |
---|
[290] | 193 | template<class sq_T > </div> |
---|
[271] | 194 | <table class="memname"> |
---|
| 195 | <tr> |
---|
| 196 | <td class="memname">void <a class="el" href="classbdm_1_1mlnorm.html">bdm::mlnorm</a>< sq_T >::condition </td> |
---|
| 197 | <td>(</td> |
---|
| 198 | <td class="paramtype">const vec & </td> |
---|
| 199 | <td class="paramname"> <em>cond</em> </td> |
---|
| 200 | <td> ) </td> |
---|
| 201 | <td><code> [inline, virtual]</code></td> |
---|
| 202 | </tr> |
---|
| 203 | </table> |
---|
| 204 | </div> |
---|
| 205 | <div class="memdoc"> |
---|
| 206 | |
---|
| 207 | <p> |
---|
| 208 | Set value of <code>rvc</code> . Result of this operation is stored in <code><a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a></code> use function <code>_ep</code> to access it. |
---|
| 209 | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#db94784a9aacf74c65c5a014f6743530">bdm::mpdf</a>.</p> |
---|
| 210 | |
---|
| 211 | <p>Reimplemented in <a class="el" href="classbdm_1_1mlstudent.html#efd37560585c8613897f30d3c2f58d0d">bdm::mlstudent</a>.</p> |
---|
| 212 | |
---|
| 213 | </div> |
---|
| 214 | </div><p> |
---|
[269] | 215 | <a class="anchor" name="f0c1db6fcbb3aae2dd6123884457a367"></a><!-- doxytag: member="bdm::mlnorm::samplecond" ref="f0c1db6fcbb3aae2dd6123884457a367" args="(const vec &cond)" --> |
---|
[259] | 216 | <div class="memitem"> |
---|
| 217 | <div class="memproto"> |
---|
| 218 | <table class="memname"> |
---|
| 219 | <tr> |
---|
| 220 | <td class="memname">virtual vec bdm::mpdf::samplecond </td> |
---|
| 221 | <td>(</td> |
---|
| 222 | <td class="paramtype">const vec & </td> |
---|
[269] | 223 | <td class="paramname"> <em>cond</em> </td> |
---|
| 224 | <td> ) </td> |
---|
| 225 | <td><code> [inline, virtual, inherited]</code></td> |
---|
[259] | 226 | </tr> |
---|
| 227 | </table> |
---|
| 228 | </div> |
---|
| 229 | <div class="memdoc"> |
---|
| 230 | |
---|
| 231 | <p> |
---|
[323] | 232 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_50.png">. |
---|
[259] | 233 | <p> |
---|
| 234 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 235 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 236 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 237 | </table> |
---|
| 238 | </dl> |
---|
| 239 | |
---|
[271] | 240 | <p>Reimplemented in <a class="el" href="classbdm_1_1mprod.html#ee715a8013acf9892f6cb489db595555">bdm::mprod</a>.</p> |
---|
[259] | 241 | |
---|
[287] | 242 | <p>References <a class="el" href="libBM_8h-source.html#l00329">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00302">bdm::mpdf::ep</a>, and <a class="el" href="libBM_8h-source.html#l00242">bdm::epdf::sample()</a>.</p> |
---|
[259] | 243 | |
---|
[312] | 244 | <p>Referenced by <a class="el" href="libPF_8h-source.html#l00207">bdm::MPF< BM_T >::bayes()</a>, <a class="el" href="libPF_8cpp-source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="libDS_8cpp-source.html#l00042">bdm::ArxDS::step()</a>.</p> |
---|
[271] | 245 | |
---|
[259] | 246 | </div> |
---|
| 247 | </div><p> |
---|
[270] | 248 | <a class="anchor" name="afe4185b26baeb03688202e254d3b005"></a><!-- doxytag: member="bdm::mlnorm::samplecond_m" ref="afe4185b26baeb03688202e254d3b005" args="(const vec &cond, int N)" --> |
---|
[259] | 249 | <div class="memitem"> |
---|
| 250 | <div class="memproto"> |
---|
| 251 | <table class="memname"> |
---|
| 252 | <tr> |
---|
| 253 | <td class="memname">virtual mat bdm::mpdf::samplecond_m </td> |
---|
| 254 | <td>(</td> |
---|
| 255 | <td class="paramtype">const vec & </td> |
---|
| 256 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 257 | </tr> |
---|
| 258 | <tr> |
---|
| 259 | <td class="paramkey"></td> |
---|
| 260 | <td></td> |
---|
| 261 | <td class="paramtype">int </td> |
---|
| 262 | <td class="paramname"> <em>N</em></td><td> </td> |
---|
| 263 | </tr> |
---|
| 264 | <tr> |
---|
| 265 | <td></td> |
---|
| 266 | <td>)</td> |
---|
| 267 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
---|
| 268 | </tr> |
---|
| 269 | </table> |
---|
| 270 | </div> |
---|
| 271 | <div class="memdoc"> |
---|
| 272 | |
---|
| 273 | <p> |
---|
| 274 | Returns. |
---|
| 275 | <p> |
---|
| 276 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 277 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
[323] | 278 | <tr><td valign="top"></td><td valign="top"><em>N</em> </td><td>samples from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_50.png">. </td></tr> |
---|
[259] | 279 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 280 | </table> |
---|
| 281 | </dl> |
---|
| 282 | |
---|
[287] | 283 | <p>References <a class="el" href="libBM_8h-source.html#l00329">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00286">bdm::epdf::dimension()</a>, <a class="el" href="libBM_8h-source.html#l00302">bdm::mpdf::ep</a>, and <a class="el" href="libBM_8h-source.html#l00242">bdm::epdf::sample()</a>.</p> |
---|
[259] | 284 | |
---|
| 285 | </div> |
---|
| 286 | </div><p> |
---|
| 287 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
[261] | 288 | <li><a class="el" href="libEF_8h-source.html">libEF.h</a></ul> |
---|
[259] | 289 | </div> |
---|
[323] | 290 | <hr size="1"><address style="text-align: right;"><small>Generated on Thu Apr 23 21:06:46 2009 for mixpp by |
---|
[259] | 291 | <a href="http://www.doxygen.org/index.html"> |
---|
[290] | 292 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[259] | 293 | </body> |
---|
| 294 | </html> |
---|