Changeset 181 for doc/html/classmlnorm.html
- Timestamp:
- 10/15/08 19:11:17 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/classmlnorm.html
r180 r181 48 48 <tr><td></td></tr> 49 49 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> 50 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" f927203b3f31171c5c10ffc7caa797f5"></a><!-- doxytag: member="mlnorm::mlnorm" ref="f927203b3f31171c5c10ffc7caa797f5" args="(RV &rv,RV &rvc)" -->51 </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html# f927203b3f31171c5c10ffc7caa797f5">mlnorm</a> (<a class="el" href="classRV.html">RV</a> &<a class="el" href="classmpdf.html#f6687c07ff07d47812dd565368ca59eb">rv</a>,<a class="el" href="classRV.html">RV</a> &<a class="el" href="classmpdf.html#acb7dda792b3cd5576f39fa3129abbab">rvc</a>)</td></tr>50 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a5ad4798d8a3878c5e93b8e796c8837"></a><!-- doxytag: member="mlnorm::mlnorm" ref="3a5ad4798d8a3878c5e93b8e796c8837" args="(const RV &rv, const RV &rvc)" --> 51 </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#3a5ad4798d8a3878c5e93b8e796c8837">mlnorm</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classmpdf.html#f6687c07ff07d47812dd565368ca59eb">rv</a>, const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classmpdf.html#acb7dda792b3cd5576f39fa3129abbab">rvc</a>)</td></tr> 52 52 53 53 <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> 54 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" b6749030c5d5abcb3eb6898f74cea3c0"></a><!-- doxytag: member="mlnorm::set_parameters" ref="b6749030c5d5abcb3eb6898f74cea3c0" args="(const mat &A, const sq_T &R)" -->55 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html# b6749030c5d5abcb3eb6898f74cea3c0">set_parameters</a> (const mat &A, const sq_T &R)</td></tr>54 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f95dfce0b500636a44ecd7e5210de999"></a><!-- doxytag: member="mlnorm::set_parameters" ref="f95dfce0b500636a44ecd7e5210de999" args="(const mat &A, const vec &mu0, const sq_T &R)" --> 55 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#f95dfce0b500636a44ecd7e5210de999">set_parameters</a> (const mat &A, const vec &mu0, const sq_T &R)</td></tr> 56 56 57 57 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr> 58 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" decf3e3b5c8e0812e5b4dbe94fa2ae18"></a><!-- doxytag: member="mlnorm::samplecond" ref="decf3e3b5c8e0812e5b4dbe94fa2ae18" args="(vec &cond, double &lik)" -->59 vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html# decf3e3b5c8e0812e5b4dbe94fa2ae18">samplecond</a> (vec &cond, double &lik)</td></tr>58 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1bd939dbf8ec7b8066d3f18abba6822b"></a><!-- doxytag: member="mlnorm::samplecond" ref="1bd939dbf8ec7b8066d3f18abba6822b" args="(const vec &cond, double &lik)" --> 59 vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#1bd939dbf8ec7b8066d3f18abba6822b">samplecond</a> (const vec &cond, double &lik)</td></tr> 60 60 61 61 <tr><td class="mdescLeft"> </td><td class="mdescRight">Generate one sample of the posterior. <br></td></tr> 62 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" 215fb88cc8b95d64cdefd6849abdd1e8"></a><!-- doxytag: member="mlnorm::samplecond" ref="215fb88cc8b95d64cdefd6849abdd1e8" args="(vec &cond, vec &lik, int n)" -->63 mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html# 215fb88cc8b95d64cdefd6849abdd1e8">samplecond</a> (vec &cond, vec &lik, int n)</td></tr>62 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="06a3600a414b4b0f006ce9440f462817"></a><!-- doxytag: member="mlnorm::samplecond" ref="06a3600a414b4b0f006ce9440f462817" args="(const vec &cond, vec &lik, int n)" --> 63 mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#06a3600a414b4b0f006ce9440f462817">samplecond</a> (const vec &cond, vec &lik, int n)</td></tr> 64 64 65 65 <tr><td class="mdescLeft"> </td><td class="mdescRight">Generate matrix of samples of the posterior. <br></td></tr> 66 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" 5232fc7e305eceab4e2bd6a8daa44195"></a><!-- doxytag: member="mlnorm::condition" ref="5232fc7e305eceab4e2bd6a8daa44195" args="(vec &cond)" -->67 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html# 5232fc7e305eceab4e2bd6a8daa44195">condition</a> (vec &cond)</td></tr>66 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d41126455ac64b888a38f677886e1b40"></a><!-- doxytag: member="mlnorm::condition" ref="d41126455ac64b888a38f677886e1b40" args="(const vec &cond)" --> 67 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#d41126455ac64b888a38f677886e1b40">condition</a> (const vec &cond)</td></tr> 68 68 69 69 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set value of <code>rvc</code> . Result of this operation is stored in <code><a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a></code> use function <code>_ep</code> to access it. <br></td></tr> 70 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#3f172b79ec4a5ebc87898a5381141f1b">samplecond</a> (const vec &cond, double &ll)</td></tr>71 72 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. <a href="#3f172b79ec4a5ebc87898a5381141f1b"></a><br></td></tr>73 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0e37163660f93df2a4d723cedb1da89c">samplecond</a> (const vec &cond, vec &ll, int N)</td></tr>74 75 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#0e37163660f93df2a4d723cedb1da89c"></a><br></td></tr>76 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f95a0cc6ab40611f46804682446ed83"></a><!-- doxytag: member="mlnorm::condition" ref="0f95a0cc6ab40611f46804682446ed83" args="(const vec &cond)" -->77 virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0f95a0cc6ab40611f46804682446ed83">condition</a> (const vec &cond)</td></tr>78 79 <tr><td class="mdescLeft"> </td><td class="mdescRight">Update <code>ep</code> so that it represents this <a class="el" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> conditioned on <code>rvc</code> = cond. <br></td></tr>80 70 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80b738ece5bd4f8c4edaee4b38906f91"></a><!-- doxytag: member="mlnorm::evalcond" ref="80b738ece5bd4f8c4edaee4b38906f91" args="(const vec &dt, const vec &cond)" --> 81 71 virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#80b738ece5bd4f8c4edaee4b38906f91">evalcond</a> (const vec &dt, const vec &cond)</td></tr> … … 114 104 Normal distributed linear function with linear function of mean value;. 115 105 <p> 116 Mean value <img class="formulaInl" alt="$mu=A*rvc$" src="form_40.png">. <hr><h2>Member Function Documentation</h2> 117 <a class="anchor" name="3f172b79ec4a5ebc87898a5381141f1b"></a><!-- doxytag: member="mlnorm::samplecond" ref="3f172b79ec4a5ebc87898a5381141f1b" args="(const vec &cond, double &ll)" --> 118 <div class="memitem"> 119 <div class="memproto"> 120 <table class="memname"> 121 <tr> 122 <td class="memname">virtual vec mpdf::samplecond </td> 123 <td>(</td> 124 <td class="paramtype">const vec & </td> 125 <td class="paramname"> <em>cond</em>, </td> 126 </tr> 127 <tr> 128 <td class="paramkey"></td> 129 <td></td> 130 <td class="paramtype">double & </td> 131 <td class="paramname"> <em>ll</em></td><td> </td> 132 </tr> 133 <tr> 134 <td></td> 135 <td>)</td> 136 <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> 137 </tr> 138 </table> 139 </div> 140 <div class="memdoc"> 141 142 <p> 143 Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. 144 <p> 145 Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. <dl compact><dt><b>Parameters:</b></dt><dd> 146 <table border="0" cellspacing="2" cellpadding="0"> 147 <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> 148 <tr><td valign="top"></td><td valign="top"><em>ll</em> </td><td>is a return value of log-likelihood of the sample. </td></tr> 149 </table> 150 </dl> 151 152 <p>Reimplemented in <a class="el" href="classmprod.html#a48887eb8738a9e5550bfc38eb8e9d68">mprod</a>.</p> 153 154 <p>References <a class="el" href="libBM_8h-source.html#l00215">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00198">mpdf::ep</a>, <a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">epdf::evalpdflog()</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> 155 156 <p>Referenced by <a class="el" href="libPF_8h-source.html#l00137">MPF< BM_T >::bayes()</a>, and <a class="el" href="libPF_8cpp-source.html#l00007">PF::bayes()</a>.</p> 157 158 </div> 159 </div><p> 160 <a class="anchor" name="0e37163660f93df2a4d723cedb1da89c"></a><!-- doxytag: member="mlnorm::samplecond" ref="0e37163660f93df2a4d723cedb1da89c" args="(const vec &cond, vec &ll, int N)" --> 161 <div class="memitem"> 162 <div class="memproto"> 163 <table class="memname"> 164 <tr> 165 <td class="memname">virtual mat mpdf::samplecond </td> 166 <td>(</td> 167 <td class="paramtype">const vec & </td> 168 <td class="paramname"> <em>cond</em>, </td> 169 </tr> 170 <tr> 171 <td class="paramkey"></td> 172 <td></td> 173 <td class="paramtype">vec & </td> 174 <td class="paramname"> <em>ll</em>, </td> 175 </tr> 176 <tr> 177 <td class="paramkey"></td> 178 <td></td> 179 <td class="paramtype">int </td> 180 <td class="paramname"> <em>N</em></td><td> </td> 181 </tr> 182 <tr> 183 <td></td> 184 <td>)</td> 185 <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> 186 </tr> 187 </table> 188 </div> 189 <div class="memdoc"> 190 191 <p> 192 Returns. 193 <p> 194 <dl compact><dt><b>Parameters:</b></dt><dd> 195 <table border="0" cellspacing="2" cellpadding="0"> 196 <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_10.png">. </td></tr> 197 <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> 198 <tr><td valign="top"></td><td valign="top"><em>ll</em> </td><td>is a return value of log-likelihood of the sample. </td></tr> 199 </table> 200 </dl> 201 202 <p>Reimplemented in <a class="el" href="classmprod.html#e171c40e210539c2af01d6237785620b">mprod</a>.</p> 203 204 <p>References <a class="el" href="libBM_8h-source.html#l00215">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00069">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00198">mpdf::ep</a>, <a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">epdf::evalpdflog()</a>, <a class="el" href="libBM_8h-source.html#l00194">mpdf::rv</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> 205 206 </div> 207 </div><p> 208 <hr>The documentation for this class was generated from the following file:<ul> 106 Mean value <img class="formulaInl" alt="$mu=A*rvc+mu_0$" src="form_78.png">. <hr>The documentation for this class was generated from the following file:<ul> 209 107 <li>work/git/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul> 210 108 </div> 211 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Oct 9 21:26:422008 for mixpp by 109 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 15 15:57:16 2008 for mixpp by 212 110 <a href="http://www.doxygen.org/index.html"> 213 111 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>