[33] | 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"> |
---|
[171] | 3 | <title>mixpp: mprod Class Reference</title> |
---|
[33] | 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
[139] | 7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
[91] | 8 | <div class="navigation" id="top"> |
---|
| 9 | <div class="tabs"> |
---|
| 10 | <ul> |
---|
| 11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 13 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 14 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 15 | </ul> |
---|
| 16 | </div> |
---|
| 17 | <div class="tabs"> |
---|
| 18 | <ul> |
---|
| 19 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 20 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 21 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 22 | </ul> |
---|
| 23 | </div> |
---|
[33] | 24 | </div> |
---|
[91] | 25 | <div class="contents"> |
---|
[180] | 26 | <h1>mprod Class Reference</h1><!-- doxytag: class="mprod" --><!-- doxytag: inherits="compositepdf,mpdf" -->Chain rule decomposition of <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. |
---|
[33] | 27 | <a href="#_details">More...</a> |
---|
| 28 | <p> |
---|
[171] | 29 | <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
---|
[33] | 30 | <p> |
---|
| 31 | <div class="dynheader"> |
---|
[171] | 32 | Inheritance diagram for mprod:</div> |
---|
[33] | 33 | <div class="dynsection"> |
---|
[171] | 34 | <p><center><img src="classmprod__inherit__graph.png" border="0" usemap="#mprod__inherit__map" alt="Inheritance graph"></center> |
---|
| 35 | <map name="mprod__inherit__map"> |
---|
[180] | 36 | <area shape="rect" href="classcompositepdf.html" title="Abstract composition of pdfs, a base for specific classes." alt="" coords="5,7,112,33"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="136,7,189,33"></map> |
---|
[33] | 37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 38 | <div class="dynheader"> |
---|
[171] | 39 | Collaboration diagram for mprod:</div> |
---|
[33] | 40 | <div class="dynsection"> |
---|
[171] | 41 | <p><center><img src="classmprod__coll__graph.png" border="0" usemap="#mprod__coll__map" alt="Collaboration graph"></center> |
---|
| 42 | <map name="mprod__coll__map"> |
---|
[180] | 43 | <area shape="rect" href="classcompositepdf.html" title="Abstract composition of pdfs, a base for specific classes." alt="" coords="5,204,112,231"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="136,204,189,231"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="137,7,175,33"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="172,105,220,132"></map> |
---|
[33] | 44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 45 | |
---|
| 46 | <p> |
---|
[171] | 47 | <a href="classmprod-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[33] | 48 | <tr><td></td></tr> |
---|
| 49 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[180] | 50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="419b303581a91ad85200bdcb4b3186f4"></a><!-- doxytag: member="mprod::mprod" ref="419b303581a91ad85200bdcb4b3186f4" args="(Array< mpdf * > mFacs)" --> |
---|
| 51 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#419b303581a91ad85200bdcb4b3186f4">mprod</a> (Array< <a class="el" href="classmpdf.html">mpdf</a> * > mFacs)</td></tr> |
---|
[33] | 52 | |
---|
[171] | 53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from list of mFacs, Additional parameter overlap is left for future use. Do not set to true for <a class="el" href="classmprod.html" title="Chain rule decomposition of epdf.">mprod</a>. <br></td></tr> |
---|
| 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c15df5d0c7bb9dc82dd78f037b2550a8"></a><!-- doxytag: member="mprod::evalpdflog" ref="c15df5d0c7bb9dc82dd78f037b2550a8" args="(const vec &val) const " --> |
---|
| 55 | double </td><td class="memItemRight" valign="bottom"><b>evalpdflog</b> (const vec &val) const </td></tr> |
---|
[33] | 56 | |
---|
[171] | 57 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#a48887eb8738a9e5550bfc38eb8e9d68">samplecond</a> (const vec &cond, double &ll)</td></tr> |
---|
[139] | 58 | |
---|
[171] | 59 | <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="#a48887eb8738a9e5550bfc38eb8e9d68"></a><br></td></tr> |
---|
| 60 | <tr><td class="memItemLeft" nowrap align="right" valign="top">mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#e171c40e210539c2af01d6237785620b">samplecond</a> (const vec &cond, vec &ll, int N)</td></tr> |
---|
| 61 | |
---|
| 62 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#e171c40e210539c2af01d6237785620b"></a><br></td></tr> |
---|
[181] | 63 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#635d219fb3e32852400d6f98aa4bdc93">getrv</a> (bool checkoverlap=false)</td></tr> |
---|
[180] | 64 | |
---|
[181] | 65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">find common rv, flag <a href="#635d219fb3e32852400d6f98aa4bdc93"></a><br></td></tr> |
---|
[180] | 66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a4479785c1fdb2cc351fbea07b899ac"></a><!-- doxytag: member="mprod::setrvc" ref="5a4479785c1fdb2cc351fbea07b899ac" args="(const RV &rv, RV &rvc)" --> |
---|
[181] | 67 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#5a4479785c1fdb2cc351fbea07b899ac">setrvc</a> (const <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> |
---|
[180] | 68 | |
---|
[181] | 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr> |
---|
[180] | 70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="08958c8f76d65de94ecc37b8d90bc77a"></a><!-- doxytag: member="mprod::setindices" ref="08958c8f76d65de94ecc37b8d90bc77a" args="(const RV &rv)" --> |
---|
[181] | 71 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#08958c8f76d65de94ecc37b8d90bc77a">setindices</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classmpdf.html#f6687c07ff07d47812dd565368ca59eb">rv</a>)</td></tr> |
---|
[180] | 72 | |
---|
[181] | 73 | <tr><td class="mdescLeft"> </td><td class="mdescRight">fill all rv*inrv* according to <br></td></tr> |
---|
[180] | 74 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3bd4ada95f381ea6c4cff2dc86e957c4"></a><!-- doxytag: member="mprod::setrvcinrv" ref="3bd4ada95f381ea6c4cff2dc86e957c4" args="(const RV &rvc, Array< ivec > &rvcind)" --> |
---|
[181] | 75 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#3bd4ada95f381ea6c4cff2dc86e957c4">setrvcinrv</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classmpdf.html#acb7dda792b3cd5576f39fa3129abbab">rvc</a>, Array< ivec > &rvcind)</td></tr> |
---|
[180] | 76 | |
---|
[181] | 77 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Function fills Array by indeces of mpdfs inside given rv. <br></td></tr> |
---|
[171] | 78 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f95a0cc6ab40611f46804682446ed83"></a><!-- doxytag: member="mprod::condition" ref="0f95a0cc6ab40611f46804682446ed83" args="(const vec &cond)" --> |
---|
[33] | 79 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0f95a0cc6ab40611f46804682446ed83">condition</a> (const vec &cond)</td></tr> |
---|
| 80 | |
---|
| 81 | <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> |
---|
[171] | 82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80b738ece5bd4f8c4edaee4b38906f91"></a><!-- doxytag: member="mprod::evalcond" ref="80b738ece5bd4f8c4edaee4b38906f91" args="(const vec &dt, const vec &cond)" --> |
---|
[33] | 83 | 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> |
---|
| 84 | |
---|
| 85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for conditioning and evaluation of the internal <a class="el" href="classepdf.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> |
---|
[171] | 86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec9c850305984582548e8deb64f0ffe8"></a><!-- doxytag: member="mprod::_rvc" ref="ec9c850305984582548e8deb64f0ffe8" args="()" --> |
---|
[33] | 87 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#ec9c850305984582548e8deb64f0ffe8">_rvc</a> ()</td></tr> |
---|
| 88 | |
---|
| 89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[171] | 90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e71ad4c66d5884c82d4a3b06b42fe32"></a><!-- doxytag: member="mprod::_rv" ref="1e71ad4c66d5884c82d4a3b06b42fe32" args="()" --> |
---|
[162] | 91 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#1e71ad4c66d5884c82d4a3b06b42fe32">_rv</a> ()</td></tr> |
---|
| 92 | |
---|
| 93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[171] | 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e17780ee5b2cfe05922a6c56af1462f8"></a><!-- doxytag: member="mprod::_epdf" ref="e17780ee5b2cfe05922a6c56af1462f8" args="()" --> |
---|
[33] | 95 | <a class="el" href="classepdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#e17780ee5b2cfe05922a6c56af1462f8">_epdf</a> ()</td></tr> |
---|
| 96 | |
---|
| 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 98 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
[171] | 99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0883ce383e8475546df138719918f70e"></a><!-- doxytag: member="mprod::epdfs" ref="0883ce383e8475546df138719918f70e" args="" --> |
---|
[181] | 100 | Array< <a class="el" href="classepdf.html">epdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#0883ce383e8475546df138719918f70e">epdfs</a></td></tr> |
---|
[171] | 101 | |
---|
[181] | 102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointers to epdfs - shortcut to <a class="el" href="classcompositepdf.html#637877061b917a16a0421bb5c4cd480d" title="Elements of composition.">mpdfs()</a>.<a class="el" href="classmpdf.html#e17780ee5b2cfe05922a6c56af1462f8" title="access function">_epdf()</a> <br></td></tr> |
---|
[180] | 103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc85192d8abc01832937ed8b62e363a6"></a><!-- doxytag: member="mprod::rvcinds" ref="cc85192d8abc01832937ed8b62e363a6" args="" --> |
---|
| 104 | Array< ivec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#cc85192d8abc01832937ed8b62e363a6">rvcinds</a></td></tr> |
---|
[171] | 105 | |
---|
[180] | 106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indeces of rvc in common rvc. <br></td></tr> |
---|
| 107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c1646fe41ff5934d010e54ccaa46133f"></a><!-- doxytag: member="mprod::n" ref="c1646fe41ff5934d010e54ccaa46133f" args="" --> |
---|
| 108 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#c1646fe41ff5934d010e54ccaa46133f">n</a></td></tr> |
---|
[171] | 109 | |
---|
[180] | 110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr> |
---|
| 111 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="637877061b917a16a0421bb5c4cd480d"></a><!-- doxytag: member="mprod::mpdfs" ref="637877061b917a16a0421bb5c4cd480d" args="" --> |
---|
| 112 | Array< <a class="el" href="classmpdf.html">mpdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#637877061b917a16a0421bb5c4cd480d">mpdfs</a></td></tr> |
---|
| 113 | |
---|
| 114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elements of composition. <br></td></tr> |
---|
| 115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4d4a8269f9faefeca8cdc251a5a29a7f"></a><!-- doxytag: member="mprod::rvsinrv" ref="4d4a8269f9faefeca8cdc251a5a29a7f" args="" --> |
---|
| 116 | Array< ivec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#4d4a8269f9faefeca8cdc251a5a29a7f">rvsinrv</a></td></tr> |
---|
| 117 | |
---|
[171] | 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indeces of rvs in common rv. <br></td></tr> |
---|
[180] | 119 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3df07bb5e3ed36a3119b145043296676"></a><!-- doxytag: member="mprod::rvcsinrv" ref="3df07bb5e3ed36a3119b145043296676" args="" --> |
---|
| 120 | Array< ivec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#3df07bb5e3ed36a3119b145043296676">rvcsinrv</a></td></tr> |
---|
[171] | 121 | |
---|
| 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indeces of rvc in common rv. <br></td></tr> |
---|
[181] | 123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de3bd289a26d5549dcf1ed19e5b13569"></a><!-- doxytag: member="mprod::rvinrvcs" ref="de3bd289a26d5549dcf1ed19e5b13569" args="" --> |
---|
| 124 | Array< ivec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#de3bd289a26d5549dcf1ed19e5b13569">rvinrvcs</a></td></tr> |
---|
| 125 | |
---|
| 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indeces of common rv in rvc. <br></td></tr> |
---|
[171] | 127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="mprod::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" --> |
---|
[33] | 128 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#f6687c07ff07d47812dd565368ca59eb">rv</a></td></tr> |
---|
| 129 | |
---|
| 130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modeled random variable <br></td></tr> |
---|
[171] | 131 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acb7dda792b3cd5576f39fa3129abbab"></a><!-- doxytag: member="mprod::rvc" ref="acb7dda792b3cd5576f39fa3129abbab" args="" --> |
---|
[33] | 132 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#acb7dda792b3cd5576f39fa3129abbab">rvc</a></td></tr> |
---|
| 133 | |
---|
| 134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
[171] | 135 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7aa894208a32f3487827df6d5054424c"></a><!-- doxytag: member="mprod::ep" ref="7aa894208a32f3487827df6d5054424c" args="" --> |
---|
[33] | 136 | <a class="el" href="classepdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#7aa894208a32f3487827df6d5054424c">ep</a></td></tr> |
---|
| 137 | |
---|
| 138 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointer to internal <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> <br></td></tr> |
---|
| 139 | </table> |
---|
| 140 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
[171] | 141 | Chain rule decomposition of <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. |
---|
[33] | 142 | <p> |
---|
[171] | 143 | Probability density in the form of Chain-rule decomposition: \[ f(x_1,x_2,x_3) = f(x_1|x_2,x_3)f(x_2,x_3)f(x_3) \] Note that <hr><h2>Member Function Documentation</h2> |
---|
| 144 | <a class="anchor" name="a48887eb8738a9e5550bfc38eb8e9d68"></a><!-- doxytag: member="mprod::samplecond" ref="a48887eb8738a9e5550bfc38eb8e9d68" args="(const vec &cond, double &ll)" --> |
---|
[33] | 145 | <div class="memitem"> |
---|
| 146 | <div class="memproto"> |
---|
| 147 | <table class="memname"> |
---|
| 148 | <tr> |
---|
[171] | 149 | <td class="memname">vec mprod::samplecond </td> |
---|
[33] | 150 | <td>(</td> |
---|
[162] | 151 | <td class="paramtype">const vec & </td> |
---|
[33] | 152 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 153 | </tr> |
---|
| 154 | <tr> |
---|
| 155 | <td class="paramkey"></td> |
---|
| 156 | <td></td> |
---|
| 157 | <td class="paramtype">double & </td> |
---|
| 158 | <td class="paramname"> <em>ll</em></td><td> </td> |
---|
| 159 | </tr> |
---|
| 160 | <tr> |
---|
| 161 | <td></td> |
---|
| 162 | <td>)</td> |
---|
[171] | 163 | <td></td><td></td><td><code> [inline, virtual]</code></td> |
---|
[33] | 164 | </tr> |
---|
| 165 | </table> |
---|
| 166 | </div> |
---|
| 167 | <div class="memdoc"> |
---|
| 168 | |
---|
| 169 | <p> |
---|
| 170 | 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>. |
---|
| 171 | <p> |
---|
| 172 | 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> |
---|
| 173 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 174 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 175 | <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> |
---|
| 176 | </table> |
---|
| 177 | </dl> |
---|
| 178 | |
---|
[171] | 179 | <p>Reimplemented from <a class="el" href="classmpdf.html#3f172b79ec4a5ebc87898a5381141f1b">mpdf</a>.</p> |
---|
[33] | 180 | |
---|
[181] | 181 | <p>References <a class="el" href="libBM_8h-source.html#l00072">RV::count()</a>, <a class="el" href="emix_8h-source.html#l00078">epdfs</a>, <a class="el" href="libBM_8h-source.html#l00258">compositepdf::mpdfs</a>, <a class="el" href="libBM_8h-source.html#l00256">compositepdf::n</a>, <a class="el" href="libBM_8h-source.html#l00203">mpdf::rv</a>, <a class="el" href="emix_8h-source.html#l00080">rvcinds</a>, <a class="el" href="libBM_8h-source.html#l00262">compositepdf::rvcsinrv</a>, <a class="el" href="libBM_8h-source.html#l00264">compositepdf::rvinrvcs</a>, and <a class="el" href="libBM_8h-source.html#l00260">compositepdf::rvsinrv</a>.</p> |
---|
[91] | 182 | |
---|
[181] | 183 | <p>Referenced by <a class="el" href="emix_8h-source.html#l00126">samplecond()</a>.</p> |
---|
[171] | 184 | |
---|
[33] | 185 | </div> |
---|
| 186 | </div><p> |
---|
[171] | 187 | <a class="anchor" name="e171c40e210539c2af01d6237785620b"></a><!-- doxytag: member="mprod::samplecond" ref="e171c40e210539c2af01d6237785620b" args="(const vec &cond, vec &ll, int N)" --> |
---|
[139] | 188 | <div class="memitem"> |
---|
| 189 | <div class="memproto"> |
---|
| 190 | <table class="memname"> |
---|
| 191 | <tr> |
---|
[171] | 192 | <td class="memname">mat mprod::samplecond </td> |
---|
[139] | 193 | <td>(</td> |
---|
[162] | 194 | <td class="paramtype">const vec & </td> |
---|
[139] | 195 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 196 | </tr> |
---|
| 197 | <tr> |
---|
| 198 | <td class="paramkey"></td> |
---|
| 199 | <td></td> |
---|
| 200 | <td class="paramtype">vec & </td> |
---|
| 201 | <td class="paramname"> <em>ll</em>, </td> |
---|
| 202 | </tr> |
---|
| 203 | <tr> |
---|
| 204 | <td class="paramkey"></td> |
---|
| 205 | <td></td> |
---|
| 206 | <td class="paramtype">int </td> |
---|
| 207 | <td class="paramname"> <em>N</em></td><td> </td> |
---|
| 208 | </tr> |
---|
| 209 | <tr> |
---|
| 210 | <td></td> |
---|
| 211 | <td>)</td> |
---|
[171] | 212 | <td></td><td></td><td><code> [inline, virtual]</code></td> |
---|
[139] | 213 | </tr> |
---|
| 214 | </table> |
---|
| 215 | </div> |
---|
| 216 | <div class="memdoc"> |
---|
| 217 | |
---|
| 218 | <p> |
---|
[145] | 219 | Returns. |
---|
[139] | 220 | <p> |
---|
| 221 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 222 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
[145] | 223 | <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> |
---|
[139] | 224 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 225 | <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> |
---|
| 226 | </table> |
---|
| 227 | </dl> |
---|
| 228 | |
---|
[171] | 229 | <p>Reimplemented from <a class="el" href="classmpdf.html#0e37163660f93df2a4d723cedb1da89c">mpdf</a>.</p> |
---|
[139] | 230 | |
---|
[181] | 231 | <p>References <a class="el" href="libBM_8h-source.html#l00072">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00203">mpdf::rv</a>, and <a class="el" href="emix_8h-source.html#l00103">samplecond()</a>.</p> |
---|
[171] | 232 | |
---|
[139] | 233 | </div> |
---|
| 234 | </div><p> |
---|
[181] | 235 | <a class="anchor" name="635d219fb3e32852400d6f98aa4bdc93"></a><!-- doxytag: member="mprod::getrv" ref="635d219fb3e32852400d6f98aa4bdc93" args="(bool checkoverlap=false)" --> |
---|
| 236 | <div class="memitem"> |
---|
| 237 | <div class="memproto"> |
---|
| 238 | <table class="memname"> |
---|
| 239 | <tr> |
---|
| 240 | <td class="memname"><a class="el" href="classRV.html">RV</a> compositepdf::getrv </td> |
---|
| 241 | <td>(</td> |
---|
| 242 | <td class="paramtype">bool </td> |
---|
| 243 | <td class="paramname"> <em>checkoverlap</em> = <code>false</code> </td> |
---|
| 244 | <td> ) </td> |
---|
| 245 | <td><code> [inherited]</code></td> |
---|
| 246 | </tr> |
---|
| 247 | </table> |
---|
| 248 | </div> |
---|
| 249 | <div class="memdoc"> |
---|
| 250 | |
---|
| 251 | <p> |
---|
| 252 | find common rv, flag |
---|
| 253 | <p> |
---|
| 254 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 255 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 256 | <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em> </td><td>modifies whether overlaps are acceptable </td></tr> |
---|
| 257 | </table> |
---|
| 258 | </dl> |
---|
| 259 | |
---|
| 260 | <p>References <a class="el" href="libBM_8cpp-source.html#l00051">RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00258">compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00256">compositepdf::n</a>.</p> |
---|
| 261 | |
---|
| 262 | </div> |
---|
| 263 | </div><p> |
---|
[180] | 264 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
| 265 | <li>work/git/mixpp/bdm/stat/<a class="el" href="emix_8h-source.html">emix.h</a></ul> |
---|
[91] | 266 | </div> |
---|
[181] | 267 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 15 15:57:16 2008 for mixpp by |
---|
[33] | 268 | <a href="http://www.doxygen.org/index.html"> |
---|
[139] | 269 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
[33] | 270 | </body> |
---|
| 271 | </html> |
---|