[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"> |
---|
[287] | 3 | <title>mixpp: bdm::mgnorm< sq_T > Class Template Reference</title> |
---|
[259] | 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> |
---|
[398] | 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> |
---|
[287] | 67 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mgnorm.html">mgnorm</a> |
---|
[259] | 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
[290] | 71 | <h1>bdm::mgnorm< sq_T > Class Template Reference</h1><!-- doxytag: class="bdm::mgnorm" --><!-- doxytag: inherits="bdm::mEF" -->Mpdf with general function for mean value. |
---|
| 72 | <a href="#_details">More...</a> |
---|
[259] | 73 | <p> |
---|
[397] | 74 | <code>#include <<a class="el" href="exp__family_8h-source.html">exp_family.h</a>></code> |
---|
[259] | 75 | <p> |
---|
[287] | 76 | |
---|
[290] | 77 | <p> |
---|
| 78 | <a href="classbdm_1_1mgnorm-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> |
---|
[287] | 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1b014915d74470d3efab74e07cacb97d"></a><!-- doxytag: member="bdm::mgnorm::mgnorm" ref="1b014915d74470d3efab74e07cacb97d" args="()" --> |
---|
| 82 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mgnorm.html#1b014915d74470d3efab74e07cacb97d">mgnorm</a> ()</td></tr> |
---|
[259] | 83 | |
---|
[287] | 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">default constructor <br></td></tr> |
---|
| 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="578e02458e2a0d17f3864826b6ebd564"></a><!-- doxytag: member="bdm::mgnorm::set_parameters" ref="578e02458e2a0d17f3864826b6ebd564" args="(fnc *g0, const sq_T &R0)" --> |
---|
| 86 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mgnorm.html#578e02458e2a0d17f3864826b6ebd564">set_parameters</a> (<a class="el" href="classbdm_1_1fnc.html">fnc</a> *g0, const sq_T &R0)</td></tr> |
---|
[259] | 87 | |
---|
[287] | 88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set mean function <br></td></tr> |
---|
| 89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b31d63472cf6a1030cd8dbd8094c1f6d"></a><!-- doxytag: member="bdm::mgnorm::condition" ref="b31d63472cf6a1030cd8dbd8094c1f6d" args="(const vec &cond)" --> |
---|
| 90 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mgnorm.html#b31d63472cf6a1030cd8dbd8094c1f6d">condition</a> (const vec &cond)</td></tr> |
---|
[259] | 91 | |
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Update <code>ep</code> so that it represents this <a class="el" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> conditioned on <code>rvc</code> = cond. <br></td></tr> |
---|
[396] | 93 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mgnorm.html#d717dacc6a9eb967f8410994dc6dc6f9">from_setting</a> (const Setting &set)</td></tr> |
---|
[353] | 94 | |
---|
[396] | 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::mgnorm::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 96 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
[368] | 97 | |
---|
[353] | 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
[396] | 99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::mgnorm::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 100 | 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] | 101 | |
---|
| 102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
[396] | 103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::mgnorm::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 104 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
[368] | 105 | |
---|
| 106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
[270] | 107 | <tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr> |
---|
[269] | 108 | <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] | 109 | |
---|
[397] | 110 | <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="#f0c1db6fcbb3aae2dd6123884457a367"></a><br></td></tr> |
---|
[270] | 111 | <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] | 112 | |
---|
[270] | 113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#afe4185b26baeb03688202e254d3b005"></a><br></td></tr> |
---|
[287] | 114 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6336a8a72462e2a56a3989a220f18b1b"></a><!-- doxytag: member="bdm::mgnorm::evallogcond" ref="6336a8a72462e2a56a3989a220f18b1b" args="(const vec &dt, const vec &cond)" --> |
---|
[259] | 115 | 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> |
---|
| 116 | |
---|
| 117 | <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> |
---|
[287] | 118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0b0ed1ed663071bb7cf4a1349eb94fcb"></a><!-- doxytag: member="bdm::mgnorm::evallogcond_m" ref="0b0ed1ed663071bb7cf4a1349eb94fcb" args="(const mat &Dt, const vec &cond)" --> |
---|
[259] | 119 | 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> |
---|
| 120 | |
---|
| 121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> |
---|
[396] | 122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2a0d03756f59924fd038980ee60bd904"></a><!-- doxytag: member="bdm::mgnorm::evallogcond_m" ref="2a0d03756f59924fd038980ee60bd904" args="(const Array< vec > &Dt, const vec &cond)" --> |
---|
| 123 | 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> |
---|
| 124 | |
---|
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array<vec> version of evallogcond. <br></td></tr> |
---|
[270] | 126 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
[287] | 127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5571482d150fbcb72cc36f6694ce1a10"></a><!-- doxytag: member="bdm::mgnorm::_rv" ref="5571482d150fbcb72cc36f6694ce1a10" args="()" --> |
---|
[270] | 128 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rv</b> ()</td></tr> |
---|
[259] | 129 | |
---|
[287] | 130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26001264236846897bd11e4baad47245"></a><!-- doxytag: member="bdm::mgnorm::_rvc" ref="26001264236846897bd11e4baad47245" args="()" --> |
---|
[270] | 131 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rvc</b> ()</td></tr> |
---|
[259] | 132 | |
---|
[287] | 133 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c2bae3e1e90874e72941863974ec0ed"></a><!-- doxytag: member="bdm::mgnorm::dimension" ref="1c2bae3e1e90874e72941863974ec0ed" args="()" --> |
---|
[270] | 134 | int </td><td class="memItemRight" valign="bottom"><b>dimension</b> ()</td></tr> |
---|
| 135 | |
---|
[287] | 136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mgnorm::dimensionc" ref="35e135910aed187b7290742f50e61bc8" args="()" --> |
---|
[270] | 137 | int </td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr> |
---|
| 138 | |
---|
[287] | 139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1892fe3933488942253679f068e9e7f6"></a><!-- doxytag: member="bdm::mgnorm::_epdf" ref="1892fe3933488942253679f068e9e7f6" args="()" --> |
---|
[270] | 140 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><b>_epdf</b> ()</td></tr> |
---|
[259] | 141 | |
---|
[287] | 142 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e843fd11c410a99dad2b88c55aca80"></a><!-- doxytag: member="bdm::mgnorm::_e" ref="05e843fd11c410a99dad2b88c55aca80" args="()" --> |
---|
[270] | 143 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><b>_e</b> ()</td></tr> |
---|
[259] | 144 | |
---|
[270] | 145 | <tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr> |
---|
[287] | 146 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mgnorm::set_rvc" ref="7631a5570e4ade1420065e8df78f4401" args="(const RV &rvc0)" --> |
---|
[270] | 147 | 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> |
---|
| 148 | |
---|
[287] | 149 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mgnorm::set_rv" ref="18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &rv0)" --> |
---|
[270] | 150 | 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> |
---|
| 151 | |
---|
[287] | 152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mgnorm::isnamed" ref="f8e3798150b42fd1f3e16ddbbe0e7045" args="()" --> |
---|
[270] | 153 | bool </td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr> |
---|
| 154 | |
---|
[259] | 155 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
[287] | 156 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8f7a376a1d2197e0634557e88e03104a"></a><!-- doxytag: member="bdm::mgnorm::epdf" ref="8f7a376a1d2197e0634557e88e03104a" args="" --> |
---|
| 157 | <a class="el" href="classbdm_1_1enorm.html">enorm</a>< sq_T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mgnorm.html#8f7a376a1d2197e0634557e88e03104a">epdf</a></td></tr> |
---|
[259] | 158 | |
---|
| 159 | <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> |
---|
[287] | 160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6a6350ddc38f2ee7a17cae6eb4312109"></a><!-- doxytag: member="bdm::mgnorm::mu" ref="6a6350ddc38f2ee7a17cae6eb4312109" args="" --> |
---|
| 161 | vec & </td><td class="memItemRight" valign="bottom"><b>mu</b></td></tr> |
---|
[259] | 162 | |
---|
[287] | 163 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fc0bb535367400d049f530f402754c33"></a><!-- doxytag: member="bdm::mgnorm::g" ref="fc0bb535367400d049f530f402754c33" args="" --> |
---|
| 164 | <a class="el" href="classbdm_1_1fnc.html">fnc</a> * </td><td class="memItemRight" valign="bottom"><b>g</b></td></tr> |
---|
[259] | 165 | |
---|
[287] | 166 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mgnorm::dimc" ref="7c1900976ff13dbc09c9729b3bbff9e6" args="" --> |
---|
[270] | 167 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr> |
---|
[259] | 168 | |
---|
[270] | 169 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the condition <br></td></tr> |
---|
[287] | 170 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mgnorm::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" --> |
---|
[259] | 171 | <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> |
---|
| 172 | |
---|
| 173 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
[287] | 174 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5eea43c56d38e4441bfb30270db949c0"></a><!-- doxytag: member="bdm::mgnorm::ep" ref="5eea43c56d38e4441bfb30270db949c0" args="" --> |
---|
[259] | 175 | <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> |
---|
| 176 | |
---|
| 177 | <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> |
---|
| 178 | </table> |
---|
[290] | 179 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 180 | <h3>template<class sq_T><br> |
---|
| 181 | class bdm::mgnorm< sq_T ></h3> |
---|
| 182 | |
---|
| 183 | Mpdf with general function for mean value. <hr><h2>Member Function Documentation</h2> |
---|
[396] | 184 | <a class="anchor" name="d717dacc6a9eb967f8410994dc6dc6f9"></a><!-- doxytag: member="bdm::mgnorm::from_setting" ref="d717dacc6a9eb967f8410994dc6dc6f9" args="(const Setting &set)" --> |
---|
[368] | 185 | <div class="memitem"> |
---|
| 186 | <div class="memproto"> |
---|
| 187 | <div class="memtemplate"> |
---|
[370] | 188 | template<class sq_T > </div> |
---|
[368] | 189 | <table class="memname"> |
---|
| 190 | <tr> |
---|
| 191 | <td class="memname">void <a class="el" href="classbdm_1_1mgnorm.html">bdm::mgnorm</a>< sq_T >::from_setting </td> |
---|
| 192 | <td>(</td> |
---|
| 193 | <td class="paramtype">const Setting & </td> |
---|
[396] | 194 | <td class="paramname"> <em>set</em> </td> |
---|
[368] | 195 | <td> ) </td> |
---|
| 196 | <td><code> [inline, virtual]</code></td> |
---|
| 197 | </tr> |
---|
| 198 | </table> |
---|
| 199 | </div> |
---|
| 200 | <div class="memdoc"> |
---|
| 201 | |
---|
| 202 | <p> |
---|
[396] | 203 | <a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class and it is intended for internal purposes only.">UI</a> for <a class="el" href="classbdm_1_1mgnorm.html" title="Mpdf with general function for mean value.">mgnorm</a><p> |
---|
[368] | 204 | The <a class="el" href="classbdm_1_1mgnorm.html" title="Mpdf with general function for mean value.">mgnorm</a> is constructed from a structure with fields: <div class="fragment"><pre class="fragment"> system = { |
---|
| 205 | type = <span class="stringliteral">"mgnorm"</span>; |
---|
| 206 | <span class="comment">// function for mean value evolution</span> |
---|
| 207 | g = {type=<span class="stringliteral">"fnc"</span>; ... } |
---|
| 208 | |
---|
| 209 | <span class="comment">// variance</span> |
---|
| 210 | R = [1, 0, |
---|
| 211 | 0, 1]; |
---|
| 212 | <span class="comment">// --OR --</span> |
---|
| 213 | dR = [1, 1]; |
---|
| 214 | |
---|
| 215 | <span class="comment">// == OPTIONAL ==</span> |
---|
| 216 | |
---|
| 217 | <span class="comment">// description of y variables</span> |
---|
| 218 | y = {type=<span class="stringliteral">"rv"</span>; names=[<span class="stringliteral">"y"</span>, <span class="stringliteral">"u"</span>];}; |
---|
| 219 | <span class="comment">// description of u variable</span> |
---|
| 220 | u = {type=<span class="stringliteral">"rv"</span>; names=[];} |
---|
| 221 | }; |
---|
| 222 | </pre></div><p> |
---|
| 223 | Result if |
---|
[396] | 224 | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#30a0bceb948e287d497c578e371b1667">bdm::mpdf</a>.</p> |
---|
[368] | 225 | |
---|
[401] | 226 | <p>References <a class="el" href="user__info_8h-source.html#l00359">bdm::UI::get()</a>, and <a class="el" href="exp__family_8h-source.html#l00570">bdm::mgnorm< sq_T >::set_parameters()</a>.</p> |
---|
[368] | 227 | |
---|
| 228 | </div> |
---|
| 229 | </div><p> |
---|
[287] | 230 | <a class="anchor" name="f0c1db6fcbb3aae2dd6123884457a367"></a><!-- doxytag: member="bdm::mgnorm::samplecond" ref="f0c1db6fcbb3aae2dd6123884457a367" args="(const vec &cond)" --> |
---|
[259] | 231 | <div class="memitem"> |
---|
| 232 | <div class="memproto"> |
---|
| 233 | <table class="memname"> |
---|
| 234 | <tr> |
---|
| 235 | <td class="memname">virtual vec bdm::mpdf::samplecond </td> |
---|
| 236 | <td>(</td> |
---|
| 237 | <td class="paramtype">const vec & </td> |
---|
[269] | 238 | <td class="paramname"> <em>cond</em> </td> |
---|
| 239 | <td> ) </td> |
---|
| 240 | <td><code> [inline, virtual, inherited]</code></td> |
---|
[259] | 241 | </tr> |
---|
| 242 | </table> |
---|
| 243 | </div> |
---|
| 244 | <div class="memdoc"> |
---|
| 245 | |
---|
| 246 | <p> |
---|
[397] | 247 | 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] | 248 | <p> |
---|
| 249 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 250 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 251 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 252 | </table> |
---|
| 253 | </dl> |
---|
| 254 | |
---|
[271] | 255 | <p>Reimplemented in <a class="el" href="classbdm_1_1mprod.html#ee715a8013acf9892f6cb489db595555">bdm::mprod</a>.</p> |
---|
[259] | 256 | |
---|
[397] | 257 | <p>References <a class="el" href="bdmbase_8h-source.html#l00376">bdm::mpdf::condition()</a>, <a class="el" href="bdmbase_8h-source.html#l00348">bdm::mpdf::ep</a>, and <a class="el" href="bdmbase_8h-source.html#l00263">bdm::epdf::sample()</a>.</p> |
---|
[271] | 258 | |
---|
[397] | 259 | <p>Referenced by <a class="el" href="particles_8h-source.html#l00207">bdm::MPF< BM_T >::bayes()</a>, <a class="el" href="particles_8cpp-source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="datasources_8cpp-source.html#l00043">bdm::ArxDS::step()</a>.</p> |
---|
| 260 | |
---|
[259] | 261 | </div> |
---|
| 262 | </div><p> |
---|
[287] | 263 | <a class="anchor" name="afe4185b26baeb03688202e254d3b005"></a><!-- doxytag: member="bdm::mgnorm::samplecond_m" ref="afe4185b26baeb03688202e254d3b005" args="(const vec &cond, int N)" --> |
---|
[259] | 264 | <div class="memitem"> |
---|
| 265 | <div class="memproto"> |
---|
| 266 | <table class="memname"> |
---|
| 267 | <tr> |
---|
| 268 | <td class="memname">virtual mat bdm::mpdf::samplecond_m </td> |
---|
| 269 | <td>(</td> |
---|
| 270 | <td class="paramtype">const vec & </td> |
---|
| 271 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 272 | </tr> |
---|
| 273 | <tr> |
---|
| 274 | <td class="paramkey"></td> |
---|
| 275 | <td></td> |
---|
| 276 | <td class="paramtype">int </td> |
---|
| 277 | <td class="paramname"> <em>N</em></td><td> </td> |
---|
| 278 | </tr> |
---|
| 279 | <tr> |
---|
| 280 | <td></td> |
---|
| 281 | <td>)</td> |
---|
| 282 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
---|
| 283 | </tr> |
---|
| 284 | </table> |
---|
| 285 | </div> |
---|
| 286 | <div class="memdoc"> |
---|
| 287 | |
---|
| 288 | <p> |
---|
| 289 | Returns. |
---|
| 290 | <p> |
---|
| 291 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 292 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
[397] | 293 | <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] | 294 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 295 | </table> |
---|
| 296 | </dl> |
---|
| 297 | |
---|
[397] | 298 | <p>References <a class="el" href="bdmbase_8h-source.html#l00376">bdm::mpdf::condition()</a>, <a class="el" href="bdmbase_8h-source.html#l00318">bdm::epdf::dimension()</a>, <a class="el" href="bdmbase_8h-source.html#l00348">bdm::mpdf::ep</a>, and <a class="el" href="bdmbase_8h-source.html#l00263">bdm::epdf::sample()</a>.</p> |
---|
[259] | 299 | |
---|
| 300 | </div> |
---|
| 301 | </div><p> |
---|
[287] | 302 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
[397] | 303 | <li><a class="el" href="exp__family_8h-source.html">exp_family.h</a></ul> |
---|
| 304 | </div> |
---|
[401] | 305 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 1 13:05:57 2009 for mixpp by |
---|
[259] | 306 | <a href="http://www.doxygen.org/index.html"> |
---|
[398] | 307 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[259] | 308 | </body> |
---|
| 309 | </html> |
---|