[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::egiw 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> |
---|
[396] | 7 | <!-- Generated by Doxygen 1.5.9 --> |
---|
[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_1egiw.html">egiw</a> |
---|
[259] | 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
[290] | 71 | <h1>bdm::egiw Class Reference</h1><!-- doxytag: class="bdm::egiw" --><!-- doxytag: inherits="bdm::eEF" -->Gauss-inverse-Wishart density stored in LD form. |
---|
| 72 | <a href="#_details">More...</a> |
---|
[259] | 73 | <p> |
---|
[396] | 74 | <code>#include <<a class="el" href="exp__family_8h_source.html">exp_family.h</a>></code> |
---|
[290] | 75 | <p> |
---|
[259] | 76 | |
---|
| 77 | <p> |
---|
[290] | 78 | <a href="classbdm_1_1egiw-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> |
---|
| 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="920f21548b7a3723923dd108fe514c61"></a><!-- doxytag: member="bdm::egiw::sample" ref="920f21548b7a3723923dd108fe514c61" args="() const " --> |
---|
| 82 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#920f21548b7a3723923dd108fe514c61">sample</a> () const </td></tr> |
---|
| 83 | |
---|
[354] | 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_45.png"> from density <img class="formulaInl" alt="$ f_x()$" src="form_46.png">. <br></td></tr> |
---|
[259] | 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="df70c05f918c3a6f86d60f10c1fd6ba2"></a><!-- doxytag: member="bdm::egiw::mean" ref="df70c05f918c3a6f86d60f10c1fd6ba2" args="() const " --> |
---|
| 86 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#df70c05f918c3a6f86d60f10c1fd6ba2">mean</a> () const </td></tr> |
---|
| 87 | |
---|
| 88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
---|
| 89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c1ecc406613cc2341225dc10c3d3b46a"></a><!-- doxytag: member="bdm::egiw::variance" ref="c1ecc406613cc2341225dc10c3d3b46a" args="() const " --> |
---|
| 90 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#c1ecc406613cc2341225dc10c3d3b46a">variance</a> () const </td></tr> |
---|
| 91 | |
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
---|
[353] | 93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66d2ba9295c306012b309efcc9e516f0"></a><!-- doxytag: member="bdm::egiw::est_theta" ref="66d2ba9295c306012b309efcc9e516f0" args="() const " --> |
---|
| 94 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#66d2ba9295c306012b309efcc9e516f0">est_theta</a> () const </td></tr> |
---|
| 95 | |
---|
[354] | 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">LS estimate of <img class="formulaInl" alt="$\theta$" src="form_80.png">. <br></td></tr> |
---|
[353] | 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88c321a2051d1afdbb31a098896a717b"></a><!-- doxytag: member="bdm::egiw::est_theta_cov" ref="88c321a2051d1afdbb31a098896a717b" args="() const " --> |
---|
| 98 | <a class="el" href="classldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#88c321a2051d1afdbb31a098896a717b">est_theta_cov</a> () const </td></tr> |
---|
| 99 | |
---|
| 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Covariance of the LS estimate. <br></td></tr> |
---|
[259] | 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2075aa2306648b3e4fe40bb86628d5c"></a><!-- doxytag: member="bdm::egiw::mean_mat" ref="d2075aa2306648b3e4fe40bb86628d5c" args="(mat &M, mat &R) const " --> |
---|
| 102 | void </td><td class="memItemRight" valign="bottom"><b>mean_mat</b> (mat &M, mat &R) const </td></tr> |
---|
| 103 | |
---|
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bfb8e7c619b34ad804a73bff71742b5e"></a><!-- doxytag: member="bdm::egiw::evallog_nn" ref="bfb8e7c619b34ad804a73bff71742b5e" args="(const vec &val) const " --> |
---|
| 105 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#bfb8e7c619b34ad804a73bff71742b5e">evallog_nn</a> (const vec &val) const </td></tr> |
---|
| 106 | |
---|
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">In this instance, val= [theta, r]. For multivariate instances, it is stored columnwise val = [theta_1 theta_2 ... r_1 r_2 ]. <br></td></tr> |
---|
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41d72ba7b2abc8a9a4209ffa98ed5633"></a><!-- doxytag: member="bdm::egiw::lognc" ref="41d72ba7b2abc8a9a4209ffa98ed5633" args="() const " --> |
---|
| 109 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#41d72ba7b2abc8a9a4209ffa98ed5633">lognc</a> () const </td></tr> |
---|
| 110 | |
---|
[354] | 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">logarithm of the normalizing constant, <img class="formulaInl" alt="$\mathcal{I}$" src="form_79.png"> <br></td></tr> |
---|
[259] | 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8e610e95401a11baf34f65e16ecd87be"></a><!-- doxytag: member="bdm::egiw::pow" ref="8e610e95401a11baf34f65e16ecd87be" args="(double p)" --> |
---|
| 113 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#8e610e95401a11baf34f65e16ecd87be">pow</a> (double p)</td></tr> |
---|
| 114 | |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Power of the density, used e.g. to flatten the density. <br></td></tr> |
---|
| 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="deef7d6273ba4d5a5cf0bbd91ec7277a"></a><!-- doxytag: member="bdm::egiw::dupdate" ref="deef7d6273ba4d5a5cf0bbd91ec7277a" args="(mat &v)" --> |
---|
| 117 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#deef7d6273ba4d5a5cf0bbd91ec7277a">dupdate</a> (mat &v)</td></tr> |
---|
| 118 | |
---|
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">TODO decide if it is really needed. <br></td></tr> |
---|
| 120 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a36d06ecdd6f4c79dc122510eaccc692"></a><!-- doxytag: member="bdm::egiw::evallog" ref="a36d06ecdd6f4c79dc122510eaccc692" args="(const vec &val) const " --> |
---|
| 121 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#a36d06ecdd6f4c79dc122510eaccc692">evallog</a> (const vec &val) const </td></tr> |
---|
| 122 | |
---|
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability. <br></td></tr> |
---|
| 124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="79a7c8ea8c02e45d410bd1d7ffd72b41"></a><!-- doxytag: member="bdm::egiw::evallog" ref="79a7c8ea8c02e45d410bd1d7ffd72b41" args="(const mat &Val) const " --> |
---|
| 125 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#79a7c8ea8c02e45d410bd1d7ffd72b41">evallog</a> (const mat &Val) const </td></tr> |
---|
| 126 | |
---|
| 127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability for many samples. <br></td></tr> |
---|
[396] | 128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::egiw::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 129 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
[353] | 130 | |
---|
| 131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
[396] | 132 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::egiw::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 133 | 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] | 134 | |
---|
| 135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
[396] | 136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::egiw::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 137 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
[368] | 138 | |
---|
| 139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
[270] | 140 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
| 141 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="50149cf136c9120b4fff71c117f0bb2e"></a><!-- doxytag: member="bdm::egiw::egiw" ref="50149cf136c9120b4fff71c117f0bb2e" args="()" --> |
---|
| 142 | </td><td class="memItemRight" valign="bottom"><b>egiw</b> ()</td></tr> |
---|
| 143 | |
---|
[290] | 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="79037e048e717a076f342eb1d276870e"></a><!-- doxytag: member="bdm::egiw::egiw" ref="79037e048e717a076f342eb1d276870e" args="(int dimx0, ldmat V0, double nu0=-1.0)" --> |
---|
[270] | 145 | </td><td class="memItemRight" valign="bottom"><b>egiw</b> (int dimx0, <a class="el" href="classldmat.html">ldmat</a> V0, double nu0=-1.0)</td></tr> |
---|
| 146 | |
---|
[290] | 147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="40b04f8ef133d089c4be2c7983e18b5c"></a><!-- doxytag: member="bdm::egiw::set_parameters" ref="40b04f8ef133d089c4be2c7983e18b5c" args="(int dimx0, ldmat V0, double nu0=-1.0)" --> |
---|
[270] | 148 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dimx0, <a class="el" href="classldmat.html">ldmat</a> V0, double nu0=-1.0)</td></tr> |
---|
| 149 | |
---|
| 150 | <tr><td colspan="2"><div class="groupHeader">Access attributes</div></td></tr> |
---|
| 151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15792f3112e5cf67d572f491b09324c8"></a><!-- doxytag: member="bdm::egiw::_V" ref="15792f3112e5cf67d572f491b09324c8" args="()" --> |
---|
| 152 | <a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><b>_V</b> ()</td></tr> |
---|
| 153 | |
---|
| 154 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ad9c539a80a552e837245ddcebcbbba4"></a><!-- doxytag: member="bdm::egiw::_V" ref="ad9c539a80a552e837245ddcebcbbba4" args="() const " --> |
---|
| 155 | const <a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><b>_V</b> () const </td></tr> |
---|
| 156 | |
---|
| 157 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a025ee710274ca142dd0ae978735ad4a"></a><!-- doxytag: member="bdm::egiw::_nu" ref="a025ee710274ca142dd0ae978735ad4a" args="()" --> |
---|
| 158 | double & </td><td class="memItemRight" valign="bottom"><b>_nu</b> ()</td></tr> |
---|
| 159 | |
---|
| 160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf3b2bcb158c15c24788bba90e4154e4"></a><!-- doxytag: member="bdm::egiw::_nu" ref="cf3b2bcb158c15c24788bba90e4154e4" args="() const " --> |
---|
| 161 | const double & </td><td class="memItemRight" valign="bottom"><b>_nu</b> () const </td></tr> |
---|
| 162 | |
---|
[396] | 163 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#55b76ec75bd2df5ef9cab3be20a33bbb">from_setting</a> (const Setting &set)</td></tr> |
---|
| 164 | |
---|
[271] | 165 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
| 166 | <tr><td colspan="2"><div class="groupText">Construction of each <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> should support two types of constructors: <ul> |
---|
| 167 | <li>empty constructor, </li> |
---|
| 168 | <li>copy constructor,</li> |
---|
| 169 | </ul> |
---|
| 170 | The following constructors should be supported for convenience: <ul> |
---|
| 171 | <li>constructor followed by calling <code>set_parameters()</code> </li> |
---|
| 172 | <li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv()</a></code> </li> |
---|
| 173 | </ul> |
---|
| 174 | All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code>set_parameters()</code>. This way references can be initialized in constructors. <br><br></div></td></tr> |
---|
| 175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::egiw::set_parameters" ref="840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> |
---|
| 176 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> |
---|
| 177 | |
---|
[270] | 178 | <tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> |
---|
[259] | 179 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::egiw::sample_m" ref="b4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
---|
| 180 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#b4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> |
---|
| 181 | |
---|
[354] | 182 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_47.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_48.png">. <br></td></tr> |
---|
[259] | 183 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="34956d4dd3176eeb5937cf48a1546b62"></a><!-- doxytag: member="bdm::egiw::evallog_m" ref="34956d4dd3176eeb5937cf48a1546b62" args="(const mat &Val) const " --> |
---|
| 184 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#34956d4dd3176eeb5937cf48a1546b62">evallog_m</a> (const mat &Val) const </td></tr> |
---|
| 185 | |
---|
| 186 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
[396] | 187 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="512dbf057299e871fbc61ed55acb5888"></a><!-- doxytag: member="bdm::egiw::evallog_m" ref="512dbf057299e871fbc61ed55acb5888" args="(const Array< vec > &Avec) const " --> |
---|
| 188 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#512dbf057299e871fbc61ed55acb5888">evallog_m</a> (const Array< vec > &Avec) const </td></tr> |
---|
| 189 | |
---|
| 190 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
[259] | 191 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e584eac5579c1b6384947ecf66166c77"></a><!-- doxytag: member="bdm::egiw::condition" ref="e584eac5579c1b6384947ecf66166c77" args="(const RV &rv) const " --> |
---|
| 192 | virtual <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#e584eac5579c1b6384947ecf66166c77">condition</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
---|
| 193 | |
---|
| 194 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return conditional density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br></td></tr> |
---|
| 195 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3fb2ece54f720b62ad325e61214fa0a1"></a><!-- doxytag: member="bdm::egiw::marginal" ref="3fb2ece54f720b62ad325e61214fa0a1" args="(const RV &rv) const " --> |
---|
| 196 | virtual <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#3fb2ece54f720b62ad325e61214fa0a1">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
---|
| 197 | |
---|
| 198 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return marginal density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br></td></tr> |
---|
[287] | 199 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::egiw::qbounds" ref="0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
---|
| 200 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &lb, vec &ub, double percentage=0.95) const </td></tr> |
---|
| 201 | |
---|
| 202 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br></td></tr> |
---|
[270] | 203 | <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> |
---|
| 204 | <tr><td colspan="2"><div class="groupText">Description of the random quantity via attribute <code>rv</code> is optional. For operations such as sampling <code>rv</code> does not need to be set. However, for <code>marginalization</code> and <code>conditioning</code> <code>rv</code> has to be set. NB: <br><br></div></td></tr> |
---|
| 205 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::egiw::set_rv" ref="f423e28448dbb69ef4905295ec8de8ff" args="(const RV &rv0)" --> |
---|
| 206 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0)</td></tr> |
---|
| 207 | |
---|
| 208 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br></td></tr> |
---|
| 209 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::egiw::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
---|
| 210 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
---|
| 211 | |
---|
| 212 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br></td></tr> |
---|
[259] | 213 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::egiw::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
| 214 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr> |
---|
| 215 | |
---|
[270] | 216 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr> |
---|
| 217 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
[271] | 218 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::egiw::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
---|
| 219 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
---|
[259] | 220 | |
---|
[270] | 221 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
---|
[259] | 222 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 223 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae56852845c6af176fd9017dbebbbd52"></a><!-- doxytag: member="bdm::egiw::V" ref="ae56852845c6af176fd9017dbebbbd52" args="" --> |
---|
| 224 | <a class="el" href="classldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#ae56852845c6af176fd9017dbebbbd52">V</a></td></tr> |
---|
| 225 | |
---|
| 226 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Extended information matrix of sufficient statistics. <br></td></tr> |
---|
| 227 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="447eacf19d4f4083872686f044814dc4"></a><!-- doxytag: member="bdm::egiw::nu" ref="447eacf19d4f4083872686f044814dc4" args="" --> |
---|
| 228 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#447eacf19d4f4083872686f044814dc4">nu</a></td></tr> |
---|
| 229 | |
---|
| 230 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of data records (degrees of freedom) of sufficient statistics. <br></td></tr> |
---|
[270] | 231 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23e4d78bea7e98840f3da30e76a2b57a"></a><!-- doxytag: member="bdm::egiw::dimx" ref="23e4d78bea7e98840f3da30e76a2b57a" args="" --> |
---|
| 232 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#23e4d78bea7e98840f3da30e76a2b57a">dimx</a></td></tr> |
---|
[259] | 233 | |
---|
| 234 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Dimension of the output. <br></td></tr> |
---|
| 235 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="322414c32d9a21a006a5aab0311f64fd"></a><!-- doxytag: member="bdm::egiw::nPsi" ref="322414c32d9a21a006a5aab0311f64fd" args="" --> |
---|
| 236 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#322414c32d9a21a006a5aab0311f64fd">nPsi</a></td></tr> |
---|
| 237 | |
---|
| 238 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Dimension of the regressor. <br></td></tr> |
---|
[270] | 239 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::egiw::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
---|
| 240 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
---|
| 241 | |
---|
| 242 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
---|
[259] | 243 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::egiw::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
| 244 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> |
---|
| 245 | |
---|
[270] | 246 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
---|
[259] | 247 | </table> |
---|
[290] | 248 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 249 | Gauss-inverse-Wishart density stored in LD form. |
---|
| 250 | <p> |
---|
[396] | 251 | For <img class="formulaInl" alt="$p$" src="form_58.png">-variate densities, given rv.count() should be <img class="formulaInl" alt="$p\times$" src="form_59.png"> V.rows(). <hr><h2>Member Function Documentation</h2> |
---|
| 252 | <a class="anchor" name="55b76ec75bd2df5ef9cab3be20a33bbb"></a><!-- doxytag: member="bdm::egiw::from_setting" ref="55b76ec75bd2df5ef9cab3be20a33bbb" args="(const Setting &set)" --> |
---|
| 253 | <div class="memitem"> |
---|
| 254 | <div class="memproto"> |
---|
| 255 | <table class="memname"> |
---|
| 256 | <tr> |
---|
| 257 | <td class="memname">void bdm::egiw::from_setting </td> |
---|
| 258 | <td>(</td> |
---|
| 259 | <td class="paramtype">const Setting & </td> |
---|
| 260 | <td class="paramname"> <em>set</em> </td> |
---|
| 261 | <td> ) </td> |
---|
| 262 | <td><code> [inline, virtual]</code></td> |
---|
| 263 | </tr> |
---|
| 264 | </table> |
---|
[259] | 265 | </div> |
---|
[396] | 266 | <div class="memdoc"> |
---|
| 267 | |
---|
| 268 | <p> |
---|
| 269 | Load from structure with elements: <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> |
---|
| 270 | <span class="comment">// elements of offsprings</span> |
---|
| 271 | } |
---|
| 272 | </pre></div> |
---|
| 273 | <p>Reimplemented from <a class="el" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725">bdm::epdf</a>.</p> |
---|
| 274 | |
---|
| 275 | <p>References <a class="el" href="exp__family_8h_source.html#l00184">dimx</a>, <a class="el" href="user__info_8h_source.html#l00358">bdm::UI::get()</a>, <a class="el" href="exp__family_8h_source.html#l00182">nu</a>, <a class="el" href="bdmbase_8h_source.html#l00239">bdm::epdf::rv</a>, and <a class="el" href="bdmbase_8h_source.html#l00307">bdm::epdf::set_rv()</a>.</p> |
---|
| 276 | |
---|
| 277 | </div> |
---|
| 278 | </div><p> |
---|
| 279 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
| 280 | <li><a class="el" href="exp__family_8h_source.html">exp_family.h</a><li>exp_family.cpp</ul> |
---|
| 281 | </div> |
---|
| 282 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 24 13:35:54 2009 for mixpp by |
---|
[259] | 283 | <a href="http://www.doxygen.org/index.html"> |
---|
[396] | 284 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
---|
[259] | 285 | </body> |
---|
| 286 | </html> |
---|