[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::mmix Class 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> |
---|
[538] | 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> |
---|
[290] | 54 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 55 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 56 | </ul> |
---|
| 57 | </div> |
---|
| 58 | <div class="tabs"> |
---|
| 59 | <ul> |
---|
| 60 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 61 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 62 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 63 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 64 | </ul> |
---|
| 65 | </div> |
---|
[271] | 66 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mmix.html">mmix</a> |
---|
[259] | 67 | </div> |
---|
| 68 | </div> |
---|
| 69 | <div class="contents"> |
---|
[538] | 70 | <h1>bdm::mmix Class Reference</h1><!-- doxytag: class="bdm::mmix" --><!-- doxytag: inherits="bdm::mpdf" -->Mixture of mpdfs with constant weights, all mpdfs are of equal <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> and RVC. |
---|
[290] | 71 | <a href="#_details">More...</a> |
---|
[259] | 72 | <p> |
---|
[538] | 73 | <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
---|
[290] | 74 | <p> |
---|
[259] | 75 | |
---|
| 76 | <p> |
---|
[290] | 77 | <a href="classbdm_1_1mmix-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[259] | 78 | <tr><td></td></tr> |
---|
| 79 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[270] | 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0cf51b7daeb6751103e94e6b96213fb"></a><!-- doxytag: member="bdm::mmix::mmix" ref="a0cf51b7daeb6751103e94e6b96213fb" args="()" --> |
---|
| 81 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#a0cf51b7daeb6751103e94e6b96213fb">mmix</a> ()</td></tr> |
---|
[259] | 82 | |
---|
| 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
[538] | 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#77f4e69ba18e685bdd1cb92e256a2ea2">set_parameters</a> (const vec &w0, const Array< <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> > > &Coms0)</td></tr> |
---|
[259] | 85 | |
---|
[538] | 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set weights <code>w</code> and components <code>R</code>. <a href="#77f4e69ba18e685bdd1cb92e256a2ea2"></a><br></td></tr> |
---|
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="33372bfd0ddbcb9f78b4d4b563a24624"></a><!-- doxytag: member="bdm::mmix::evallogcond" ref="33372bfd0ddbcb9f78b4d4b563a24624" args="(const vec &dt, const vec &cond)" --> |
---|
| 88 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#33372bfd0ddbcb9f78b4d4b563a24624">evallogcond</a> (const vec &dt, const vec &cond)</td></tr> |
---|
[259] | 89 | |
---|
[538] | 90 | <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> |
---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#c97f01cd62bf63e67ddd5b1b8a56cf59">samplecond</a> (const vec &cond)</td></tr> |
---|
| 92 | |
---|
| 93 | <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_11.png">. <a href="#c97f01cd62bf63e67ddd5b1b8a56cf59"></a><br></td></tr> |
---|
[396] | 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#30a0bceb948e287d497c578e371b1667">from_setting</a> (const Setting &set)</td></tr> |
---|
[353] | 95 | |
---|
[396] | 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::mmix::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 97 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
| 98 | |
---|
[353] | 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
[396] | 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::mmix::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 101 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
---|
[353] | 102 | |
---|
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
[396] | 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::mmix::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 105 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
[368] | 106 | |
---|
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
[270] | 108 | <tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr> |
---|
[472] | 109 | <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#6e497d501331057309d2fddf63259d1a">samplecond_m</a> (const vec &cond, int N)</td></tr> |
---|
[259] | 110 | |
---|
[472] | 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#6e497d501331057309d2fddf63259d1a"></a><br></td></tr> |
---|
[538] | 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0b0ed1ed663071bb7cf4a1349eb94fcb"></a><!-- doxytag: member="bdm::mmix::evallogcond_m" ref="0b0ed1ed663071bb7cf4a1349eb94fcb" args="(const mat &Dt, const vec &cond)" --> |
---|
| 113 | 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> |
---|
[259] | 114 | |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> |
---|
[538] | 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2a0d03756f59924fd038980ee60bd904"></a><!-- doxytag: member="bdm::mmix::evallogcond_m" ref="2a0d03756f59924fd038980ee60bd904" args="(const Array< vec > &Dt, const vec &cond)" --> |
---|
| 117 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#2a0d03756f59924fd038980ee60bd904">evallogcond_m</a> (const Array< vec > &Dt, const vec &cond)</td></tr> |
---|
[396] | 118 | |
---|
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array<vec> version of evallogcond. <br></td></tr> |
---|
[270] | 120 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
[538] | 121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222d5280e309c5a053ba73841e98c151"></a><!-- doxytag: member="bdm::mmix::_rv" ref="222d5280e309c5a053ba73841e98c151" args="() const " --> |
---|
| 122 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rv</b> () const </td></tr> |
---|
[259] | 123 | |
---|
[270] | 124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26001264236846897bd11e4baad47245"></a><!-- doxytag: member="bdm::mmix::_rvc" ref="26001264236846897bd11e4baad47245" args="()" --> |
---|
| 125 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rvc</b> ()</td></tr> |
---|
[259] | 126 | |
---|
[538] | 127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eea4a999ed9679181335927e9cb66d28"></a><!-- doxytag: member="bdm::mmix::dimension" ref="eea4a999ed9679181335927e9cb66d28" args="() const " --> |
---|
| 128 | int </td><td class="memItemRight" valign="bottom"><b>dimension</b> () const </td></tr> |
---|
[270] | 129 | |
---|
| 130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mmix::dimensionc" ref="35e135910aed187b7290742f50e61bc8" args="()" --> |
---|
| 131 | int </td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr> |
---|
| 132 | |
---|
| 133 | <tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr> |
---|
| 134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mmix::set_rvc" ref="7631a5570e4ade1420065e8df78f4401" args="(const RV &rvc0)" --> |
---|
| 135 | 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> |
---|
| 136 | |
---|
| 137 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mmix::set_rv" ref="18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &rv0)" --> |
---|
| 138 | 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> |
---|
| 139 | |
---|
| 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mmix::isnamed" ref="f8e3798150b42fd1f3e16ddbbe0e7045" args="()" --> |
---|
| 141 | bool </td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr> |
---|
| 142 | |
---|
[538] | 143 | <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> |
---|
| 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="147afacb393324bb3f9a7a89e33f835e"></a><!-- doxytag: member="bdm::mmix::set_ep" ref="147afacb393324bb3f9a7a89e33f835e" args="(epdf &iepdf)" --> |
---|
| 145 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#147afacb393324bb3f9a7a89e33f835e">set_ep</a> (<a class="el" href="classbdm_1_1epdf.html">epdf</a> &iepdf)</td></tr> |
---|
| 146 | |
---|
| 147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set internal pointer <code>ep</code> to point to given <code>iepdf</code> <br></td></tr> |
---|
| 148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7555b377f8b5895c9b759c9628ee3e20"></a><!-- doxytag: member="bdm::mmix::set_ep" ref="7555b377f8b5895c9b759c9628ee3e20" args="(epdf *iepdfp)" --> |
---|
| 149 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7555b377f8b5895c9b759c9628ee3e20">set_ep</a> (<a class="el" href="classbdm_1_1epdf.html">epdf</a> *iepdfp)</td></tr> |
---|
| 150 | |
---|
| 151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set internal pointer <code>ep</code> to point to given <code>iepdf</code> <br></td></tr> |
---|
[259] | 152 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
[538] | 153 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63013f8c57dfb51babc3be7fc5d05809"></a><!-- doxytag: member="bdm::mmix::Coms" ref="63013f8c57dfb51babc3be7fc5d05809" args="" --> |
---|
| 154 | Array< <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#63013f8c57dfb51babc3be7fc5d05809">Coms</a></td></tr> |
---|
[259] | 155 | |
---|
[538] | 156 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Component (mpdfs). <br></td></tr> |
---|
| 157 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f23a22414419b3a4a0a7d97157a03b17"></a><!-- doxytag: member="bdm::mmix::w" ref="f23a22414419b3a4a0a7d97157a03b17" args="" --> |
---|
| 158 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#f23a22414419b3a4a0a7d97157a03b17">w</a></td></tr> |
---|
[259] | 159 | |
---|
[538] | 160 | <tr><td class="mdescLeft"> </td><td class="mdescRight">weights of the components <br></td></tr> |
---|
| 161 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8c740fff8807cb7f1df6a7e510e10805"></a><!-- doxytag: member="bdm::mmix::dummy_epdf" ref="8c740fff8807cb7f1df6a7e510e10805" args="" --> |
---|
| 162 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#8c740fff8807cb7f1df6a7e510e10805">dummy_epdf</a></td></tr> |
---|
| 163 | |
---|
| 164 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dummy epdfs <br></td></tr> |
---|
[270] | 165 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mmix::dimc" ref="7c1900976ff13dbc09c9729b3bbff9e6" args="" --> |
---|
| 166 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr> |
---|
[259] | 167 | |
---|
[270] | 168 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the condition <br></td></tr> |
---|
[259] | 169 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mmix::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" --> |
---|
| 170 | <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> |
---|
| 171 | |
---|
| 172 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
| 173 | </table> |
---|
[290] | 174 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
[538] | 175 | Mixture of mpdfs with constant weights, all mpdfs are of equal <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> and RVC. |
---|
[290] | 176 | <p> |
---|
[259] | 177 | <hr><h2>Member Function Documentation</h2> |
---|
[396] | 178 | <a class="anchor" name="30a0bceb948e287d497c578e371b1667"></a><!-- doxytag: member="bdm::mmix::from_setting" ref="30a0bceb948e287d497c578e371b1667" args="(const Setting &set)" --> |
---|
| 179 | <div class="memitem"> |
---|
| 180 | <div class="memproto"> |
---|
| 181 | <table class="memname"> |
---|
| 182 | <tr> |
---|
| 183 | <td class="memname">void bdm::mpdf::from_setting </td> |
---|
| 184 | <td>(</td> |
---|
| 185 | <td class="paramtype">const Setting & </td> |
---|
| 186 | <td class="paramname"> <em>set</em> </td> |
---|
| 187 | <td> ) </td> |
---|
[472] | 188 | <td><code> [virtual, inherited]</code></td> |
---|
[396] | 189 | </tr> |
---|
| 190 | </table> |
---|
| 191 | </div> |
---|
| 192 | <div class="memdoc"> |
---|
| 193 | |
---|
| 194 | <p> |
---|
[538] | 195 | Load from structure with elements: <div class="fragment"><pre class="fragment"> { <span class="keyword">class </span>= "mpdf_offspring", |
---|
| 196 | rv = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> |
---|
[396] | 197 | <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>= {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable in condition</span> |
---|
| 198 | <span class="comment">// elements of offsprings</span> |
---|
| 199 | } |
---|
| 200 | </pre></div> |
---|
| 201 | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
---|
| 202 | |
---|
[538] | 203 | <p>Reimplemented in <a class="el" href="classbdm_1_1mepdf.html#27ef18a3e3b1b5de02739d1324bf25fb">bdm::mepdf</a>, <a class="el" href="classbdm_1_1mprod.html#bfa7478f8df1de6d8cd4c349db512831">bdm::mprod</a>, <a class="el" href="classbdm_1_1mlnorm.html#52980f13d80162d00b30d5864343f564">bdm::mlnorm< sq_T, TEpdf ></a>, <a class="el" href="classbdm_1_1mgnorm.html#d717dacc6a9eb967f8410994dc6dc6f9">bdm::mgnorm< sq_T ></a>, <a class="el" href="classbdm_1_1mgamma.html#da2af0f327e5452bee71d1bf97452ae4">bdm::mgamma</a>, <a class="el" href="classbdm_1_1migamma__ref.html#9e7e0f7d2aa9ecca8ec1af8cbcb5ef1d">bdm::migamma_ref</a>, <a class="el" href="classbdm_1_1mlognorm.html#49e45ea13a869da607ef9be7a229128a">bdm::mlognorm</a>, <a class="el" href="classbdm_1_1mlnorm.html#52980f13d80162d00b30d5864343f564">bdm::mlnorm< chmat ></a>, and <a class="el" href="classbdm_1_1mlnorm.html#52980f13d80162d00b30d5864343f564">bdm::mlnorm< ldmat, enorm ></a>.</p> |
---|
[396] | 204 | |
---|
| 205 | </div> |
---|
| 206 | </div><p> |
---|
[538] | 207 | <a class="anchor" name="c97f01cd62bf63e67ddd5b1b8a56cf59"></a><!-- doxytag: member="bdm::mmix::samplecond" ref="c97f01cd62bf63e67ddd5b1b8a56cf59" args="(const vec &cond)" --> |
---|
[259] | 208 | <div class="memitem"> |
---|
| 209 | <div class="memproto"> |
---|
| 210 | <table class="memname"> |
---|
| 211 | <tr> |
---|
[538] | 212 | <td class="memname">vec bdm::mmix::samplecond </td> |
---|
[259] | 213 | <td>(</td> |
---|
| 214 | <td class="paramtype">const vec & </td> |
---|
[269] | 215 | <td class="paramname"> <em>cond</em> </td> |
---|
| 216 | <td> ) </td> |
---|
[538] | 217 | <td><code> [virtual]</code></td> |
---|
[259] | 218 | </tr> |
---|
| 219 | </table> |
---|
| 220 | </div> |
---|
| 221 | <div class="memdoc"> |
---|
| 222 | |
---|
| 223 | <p> |
---|
[397] | 224 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_11.png">. |
---|
[259] | 225 | <p> |
---|
| 226 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 227 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 228 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 229 | </table> |
---|
| 230 | </dl> |
---|
| 231 | |
---|
[538] | 232 | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#f0c1db6fcbb3aae2dd6123884457a367">bdm::mpdf</a>.</p> |
---|
[259] | 233 | |
---|
[538] | 234 | <p>References <a class="el" href="emix_8h-source.html#l00464">Coms</a>, and <a class="el" href="emix_8h-source.html#l00466">w</a>.</p> |
---|
[271] | 235 | |
---|
[259] | 236 | </div> |
---|
| 237 | </div><p> |
---|
[472] | 238 | <a class="anchor" name="6e497d501331057309d2fddf63259d1a"></a><!-- doxytag: member="bdm::mmix::samplecond_m" ref="6e497d501331057309d2fddf63259d1a" args="(const vec &cond, int N)" --> |
---|
[259] | 239 | <div class="memitem"> |
---|
| 240 | <div class="memproto"> |
---|
| 241 | <table class="memname"> |
---|
| 242 | <tr> |
---|
[472] | 243 | <td class="memname">mat bdm::mpdf::samplecond_m </td> |
---|
[259] | 244 | <td>(</td> |
---|
| 245 | <td class="paramtype">const vec & </td> |
---|
| 246 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 247 | </tr> |
---|
| 248 | <tr> |
---|
| 249 | <td class="paramkey"></td> |
---|
| 250 | <td></td> |
---|
| 251 | <td class="paramtype">int </td> |
---|
| 252 | <td class="paramname"> <em>N</em></td><td> </td> |
---|
| 253 | </tr> |
---|
| 254 | <tr> |
---|
| 255 | <td></td> |
---|
| 256 | <td>)</td> |
---|
[472] | 257 | <td></td><td></td><td><code> [virtual, inherited]</code></td> |
---|
[259] | 258 | </tr> |
---|
| 259 | </table> |
---|
| 260 | </div> |
---|
| 261 | <div class="memdoc"> |
---|
| 262 | |
---|
| 263 | <p> |
---|
| 264 | Returns. |
---|
| 265 | <p> |
---|
| 266 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 267 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
[397] | 268 | <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_11.png">. </td></tr> |
---|
[259] | 269 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 270 | </table> |
---|
| 271 | </dl> |
---|
| 272 | |
---|
[538] | 273 | <p>Reimplemented in <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< EPDF ></a>, <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< egamma ></a>, <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< enorm< chmat > ></a>, <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< enorm< sq_T > ></a>, <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< eigamma ></a>, <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< elognorm ></a>, <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< eiWishartCh ></a>, <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< enorm< ldmat > ></a>, and <a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal< TEpdf< sq_T > ></a>.</p> |
---|
[259] | 274 | |
---|
[538] | 275 | <p>References <a class="el" href="bdmbase_8h-source.html#l00427">bdm::mpdf::samplecond()</a>.</p> |
---|
| 276 | |
---|
[259] | 277 | </div> |
---|
| 278 | </div><p> |
---|
[538] | 279 | <a class="anchor" name="77f4e69ba18e685bdd1cb92e256a2ea2"></a><!-- doxytag: member="bdm::mmix::set_parameters" ref="77f4e69ba18e685bdd1cb92e256a2ea2" args="(const vec &w0, const Array< shared_ptr< mpdf > > &Coms0)" --> |
---|
| 280 | <div class="memitem"> |
---|
| 281 | <div class="memproto"> |
---|
| 282 | <table class="memname"> |
---|
| 283 | <tr> |
---|
| 284 | <td class="memname">void bdm::mmix::set_parameters </td> |
---|
| 285 | <td>(</td> |
---|
| 286 | <td class="paramtype">const vec & </td> |
---|
| 287 | <td class="paramname"> <em>w0</em>, </td> |
---|
| 288 | </tr> |
---|
| 289 | <tr> |
---|
| 290 | <td class="paramkey"></td> |
---|
| 291 | <td></td> |
---|
| 292 | <td class="paramtype">const Array< <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> > > & </td> |
---|
| 293 | <td class="paramname"> <em>Coms0</em></td><td> </td> |
---|
| 294 | </tr> |
---|
| 295 | <tr> |
---|
| 296 | <td></td> |
---|
| 297 | <td>)</td> |
---|
| 298 | <td></td><td></td><td><code> [inline]</code></td> |
---|
| 299 | </tr> |
---|
| 300 | </table> |
---|
[259] | 301 | </div> |
---|
[538] | 302 | <div class="memdoc"> |
---|
| 303 | |
---|
| 304 | <p> |
---|
| 305 | Set weights <code>w</code> and components <code>R</code>. |
---|
| 306 | <p> |
---|
| 307 | |
---|
| 308 | <p> |
---|
| 309 | <dl compact><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>check if all components are OK </dd></dl> |
---|
| 310 | |
---|
| 311 | <p>References <a class="el" href="bdmbase_8h-source.html#l00138">bdm::RV::_dsize()</a>, <a class="el" href="emix_8h-source.html#l00464">Coms</a>, <a class="el" href="bdmbase_8h-source.html#l00397">bdm::mpdf::dimc</a>, <a class="el" href="emix_8h-source.html#l00468">dummy_epdf</a>, <a class="el" href="bdmbase_8h-source.html#l00399">bdm::mpdf::rvc</a>, <a class="el" href="bdmbase_8h-source.html#l00290">bdm::epdf::set_parameters()</a>, and <a class="el" href="emix_8h-source.html#l00466">w</a>.</p> |
---|
| 312 | |
---|
| 313 | </div> |
---|
| 314 | </div><p> |
---|
| 315 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
| 316 | <li><a class="el" href="emix_8h-source.html">emix.h</a><li>emix.cpp</ul> |
---|
| 317 | </div> |
---|
| 318 | <hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 16 17:58:19 2009 for mixpp by |
---|
[259] | 319 | <a href="http://www.doxygen.org/index.html"> |
---|
[538] | 320 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[259] | 321 | </body> |
---|
| 322 | </html> |
---|