root/doc/html/classbdm_1_1mprod.html @ 269

Revision 269, 22.3 kB (checked in by smidl, 16 years ago)

doc

Line 
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::mprod Class Reference</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.6 -->
8<div class="navigation" id="top">
9  <div class="tabs">
10    <ul>
11      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13      <li><a href="modules.html"><span>Modules</span></a></li>
14      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
15      <li class="current"><a href="classes.html"><span>Classes</span></a></li>
16      <li><a href="files.html"><span>Files</span></a></li>
17    </ul>
18  </div>
19  <div class="tabs">
20    <ul>
21      <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
22      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
23      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
24      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
25    </ul>
26  </div>
27  <div class="navpath"><a class="el" href="namespacebdm.html">bdm</a>::<a class="el" href="classbdm_1_1mprod.html">mprod</a>
28  </div>
29</div>
30<div class="contents">
31<h1>bdm::mprod Class Reference</h1><!-- doxytag: class="bdm::mprod" --><!-- doxytag: inherits="bdm::compositepdf,bdm::mpdf" -->Chain rule decomposition of <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>
32<a href="#_details">More...</a>
33<p>
34<code>#include &lt;<a class="el" href="emix_8h-source.html">emix.h</a>&gt;</code>
35<p>
36<div class="dynheader">
37Inheritance diagram for bdm::mprod:</div>
38<div class="dynsection">
39<p><center><img src="classbdm_1_1mprod__inherit__graph.png" border="0" usemap="#bdm_1_1mprod__inherit__map" alt="Inheritance graph"></center>
40<map name="bdm_1_1mprod__inherit__map">
41<area shape="rect" href="classbdm_1_1compositepdf.html" title="Abstract composition of pdfs, will be used for specific classes this abstract class..." alt="" coords="5,84,149,111"><area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="173,84,264,111"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="163,7,275,33"></map>
42<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
43<div class="dynheader">
44Collaboration diagram for bdm::mprod:</div>
45<div class="dynsection">
46<p><center><img src="classbdm_1_1mprod__coll__graph.png" border="0" usemap="#bdm_1_1mprod__coll__map" alt="Collaboration graph"></center>
47<map name="bdm_1_1mprod__coll__map">
48<area shape="rect" href="classbdm_1_1compositepdf.html" title="Abstract composition of pdfs, will be used for specific classes this abstract class..." alt="" coords="5,284,149,311"><area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="173,284,264,311"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="175,7,287,33"><area shape="rect" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables." alt="" coords="193,87,268,113"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="261,185,347,212"></map>
49<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
50
51<p>
52<a href="classbdm_1_1mprod-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
53<tr><td></td></tr>
54<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
55<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="680c3e2d95b116c7cfb227c7f2984525"></a><!-- doxytag: member="bdm::mprod::mprod" ref="680c3e2d95b116c7cfb227c7f2984525" args="(Array&lt; mpdf * &gt; mFacs)" -->
56&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#680c3e2d95b116c7cfb227c7f2984525">mprod</a> (Array&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * &gt; mFacs)</td></tr>
57
58<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor from list of mFacs,. <br></td></tr>
59<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="800f21d94c919137608a2fd5c88719e2"></a><!-- doxytag: member="bdm::mprod::evallogcond" ref="800f21d94c919137608a2fd5c88719e2" args="(const vec &amp;val, const vec &amp;cond)" -->
60double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#800f21d94c919137608a2fd5c88719e2">evallogcond</a> (const vec &amp;val, const vec &amp;cond)</td></tr>
61
62<tr><td class="mdescLeft">&nbsp;</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>
63<tr><td class="memItemLeft" nowrap align="right" valign="top">vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">samplecond</a> (const vec &amp;cond, double &amp;ll)</td></tr>
64
65<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b493b5565dc6a5617927421d32697cc6"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="b493b5565dc6a5617927421d32697cc6" args="(const vec &amp;cond, vec &amp;ll, int N)" -->
66mat&nbsp;</td><td class="memItemRight" valign="bottom"><b>samplecond</b> (const vec &amp;cond, vec &amp;ll, int N)</td></tr>
67
68<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c73d39acc4378eee6a63155c3517d3c9">getrv</a> (bool checkoverlap=false)</td></tr>
69
70<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">find common rv, flag  <a href="#c73d39acc4378eee6a63155c3517d3c9"></a><br></td></tr>
71<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c71fc2c51f49d797e61f479f543c75ce"></a><!-- doxytag: member="bdm::mprod::setrvc" ref="c71fc2c51f49d797e61f479f543c75ce" args="(const RV &amp;rv, RV &amp;rvc)" -->
72void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c71fc2c51f49d797e61f479f543c75ce">setrvc</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1mpdf.html#9bcfb45435d30983f436d41c298cbb51">rv</a>, <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a>)</td></tr>
73
74<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr>
75<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#f0c1db6fcbb3aae2dd6123884457a367">samplecond</a> (const vec &amp;cond)</td></tr>
76
77<tr><td class="mdescLeft">&nbsp;</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_10.png"><a href="#f0c1db6fcbb3aae2dd6123884457a367"></a><br></td></tr>
78<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#ee26963a637b2ea1fb1933652981e652">samplecond_m</a> (const vec &amp;cond, vec &amp;ll, int N)</td></tr>
79
80<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns.  <a href="#ee26963a637b2ea1fb1933652981e652"></a><br></td></tr>
81<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db94784a9aacf74c65c5a014f6743530"></a><!-- doxytag: member="bdm::mprod::condition" ref="db94784a9aacf74c65c5a014f6743530" args="(const vec &amp;cond)" -->
82virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#db94784a9aacf74c65c5a014f6743530">condition</a> (const vec &amp;cond)</td></tr>
83
84<tr><td class="mdescLeft">&nbsp;</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>
85<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0b0ed1ed663071bb7cf4a1349eb94fcb"></a><!-- doxytag: member="bdm::mprod::evallogcond_m" ref="0b0ed1ed663071bb7cf4a1349eb94fcb" args="(const mat &amp;Dt, const vec &amp;cond)" -->
86virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#0b0ed1ed663071bb7cf4a1349eb94fcb">evallogcond_m</a> (const mat &amp;Dt, const vec &amp;cond)</td></tr>
87
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr>
89<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3aba7311038bf990d706a64cab60cf8"></a><!-- doxytag: member="bdm::mprod::_rvc" ref="b3aba7311038bf990d706a64cab60cf8" args="() const " -->
90<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#b3aba7311038bf990d706a64cab60cf8">_rvc</a> () const </td></tr>
91
92<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
93<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222d5280e309c5a053ba73841e98c151"></a><!-- doxytag: member="bdm::mprod::_rv" ref="222d5280e309c5a053ba73841e98c151" args="() const " -->
94<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#222d5280e309c5a053ba73841e98c151">_rv</a> () const </td></tr>
95
96<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
97<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1892fe3933488942253679f068e9e7f6"></a><!-- doxytag: member="bdm::mprod::_epdf" ref="1892fe3933488942253679f068e9e7f6" args="()" -->
98<a class="el" href="classbdm_1_1epdf.html">epdf</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#1892fe3933488942253679f068e9e7f6">_epdf</a> ()</td></tr>
99
100<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
101<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e843fd11c410a99dad2b88c55aca80"></a><!-- doxytag: member="bdm::mprod::_e" ref="05e843fd11c410a99dad2b88c55aca80" args="()" -->
102<a class="el" href="classbdm_1_1epdf.html">epdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#05e843fd11c410a99dad2b88c55aca80">_e</a> ()</td></tr>
103
104<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
105<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
106<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eca722ed1b219727c6c0f8cbc6bf1e51"></a><!-- doxytag: member="bdm::mprod::epdfs" ref="eca722ed1b219727c6c0f8cbc6bf1e51" args="" -->
107Array&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#eca722ed1b219727c6c0f8cbc6bf1e51">epdfs</a></td></tr>
108
109<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">pointers to epdfs - shortcut to <a class="el" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a" title="Elements of composition.">mpdfs()</a>.<a class="el" href="classbdm_1_1mpdf.html#1892fe3933488942253679f068e9e7f6" title="access function">_epdf()</a> <br></td></tr>
110<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acf679b3b1d48629c5a042d9ac0d973f"></a><!-- doxytag: member="bdm::mprod::dls" ref="acf679b3b1d48629c5a042d9ac0d973f" args="" -->
111Array&lt; <a class="el" href="classbdm_1_1datalink__m2m.html">datalink_m2m</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#acf679b3b1d48629c5a042d9ac0d973f">dls</a></td></tr>
112
113<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Data link for each mpdfs. <br></td></tr>
114<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ca3cd8ed92a7154f5b9ff13b1e9d52a"></a><!-- doxytag: member="bdm::mprod::n" ref="7ca3cd8ed92a7154f5b9ff13b1e9d52a" args="" -->
115int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#7ca3cd8ed92a7154f5b9ff13b1e9d52a">n</a></td></tr>
116
117<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr>
118<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23faf2debc4dde10836393b8c665914a"></a><!-- doxytag: member="bdm::mprod::mpdfs" ref="23faf2debc4dde10836393b8c665914a" args="" -->
119Array&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a">mpdfs</a></td></tr>
120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Elements of composition. <br></td></tr>
122<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bcfb45435d30983f436d41c298cbb51"></a><!-- doxytag: member="bdm::mprod::rv" ref="9bcfb45435d30983f436d41c298cbb51" args="" -->
123<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#9bcfb45435d30983f436d41c298cbb51">rv</a></td></tr>
124
125<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modeled random variable <br></td></tr>
126<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mprod::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" -->
127<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a></td></tr>
128
129<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">random variable in condition <br></td></tr>
130<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5eea43c56d38e4441bfb30270db949c0"></a><!-- doxytag: member="bdm::mprod::ep" ref="5eea43c56d38e4441bfb30270db949c0" args="" -->
131<a class="el" href="classbdm_1_1epdf.html">epdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#5eea43c56d38e4441bfb30270db949c0">ep</a></td></tr>
132
133<tr><td class="mdescLeft">&nbsp;</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>
134</table>
135<hr><a name="_details"></a><h2>Detailed Description</h2>
136Chain rule decomposition of <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.
137<p>
138Probability 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>
139<a class="anchor" name="1a37c2aaba8bde7fce5351c39b6e1168"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="1a37c2aaba8bde7fce5351c39b6e1168" args="(const vec &amp;cond, double &amp;ll)" -->
140<div class="memitem">
141<div class="memproto">
142      <table class="memname">
143        <tr>
144          <td class="memname">vec bdm::mprod::samplecond           </td>
145          <td>(</td>
146          <td class="paramtype">const vec &amp;&nbsp;</td>
147          <td class="paramname"> <em>cond</em>, </td>
148        </tr>
149        <tr>
150          <td class="paramkey"></td>
151          <td></td>
152          <td class="paramtype">double &amp;&nbsp;</td>
153          <td class="paramname"> <em>ll</em></td><td>&nbsp;</td>
154        </tr>
155        <tr>
156          <td></td>
157          <td>)</td>
158          <td></td><td></td><td><code> [inline]</code></td>
159        </tr>
160      </table>
161</div>
162<div class="memdoc">
163
164<p>
165
166<p>
167Ugly hack to help to discover if mpfs are not in proper order. Correct solution = check that explicitely.
168<p>References <a class="el" href="libBM_8h-source.html#l00086">bdm::RV::count()</a>, <a class="el" href="emix_8h-source.html#l00166">dls</a>, <a class="el" href="emix_8h-source.html#l00164">epdfs</a>, <a class="el" href="libBM_8h-source.html#l00438">bdm::compositepdf::mpdfs</a>, <a class="el" href="libBM_8h-source.html#l00436">bdm::compositepdf::n</a>, and <a class="el" href="libBM_8h-source.html#l00229">bdm::mpdf::rv</a>.</p>
169
170</div>
171</div><p>
172<a class="anchor" name="c73d39acc4378eee6a63155c3517d3c9"></a><!-- doxytag: member="bdm::mprod::getrv" ref="c73d39acc4378eee6a63155c3517d3c9" args="(bool checkoverlap=false)" -->
173<div class="memitem">
174<div class="memproto">
175      <table class="memname">
176        <tr>
177          <td class="memname"><a class="el" href="classbdm_1_1RV.html">RV</a> bdm::compositepdf::getrv           </td>
178          <td>(</td>
179          <td class="paramtype">bool&nbsp;</td>
180          <td class="paramname"> <em>checkoverlap</em> = <code>false</code>          </td>
181          <td>&nbsp;)&nbsp;</td>
182          <td><code> [inherited]</code></td>
183        </tr>
184      </table>
185</div>
186<div class="memdoc">
187
188<p>
189find common rv, flag
190<p>
191<dl compact><dt><b>Parameters:</b></dt><dd>
192  <table border="0" cellspacing="2" cellpadding="0">
193    <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em>&nbsp;</td><td>modifies whether overlaps are acceptable </td></tr>
194  </table>
195</dl>
196
197<p>References <a class="el" href="libBM_8cpp-source.html#l00060">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00438">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00436">bdm::compositepdf::n</a>.</p>
198
199</div>
200</div><p>
201<a class="anchor" name="f0c1db6fcbb3aae2dd6123884457a367"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="f0c1db6fcbb3aae2dd6123884457a367" args="(const vec &amp;cond)" -->
202<div class="memitem">
203<div class="memproto">
204      <table class="memname">
205        <tr>
206          <td class="memname">virtual vec bdm::mpdf::samplecond           </td>
207          <td>(</td>
208          <td class="paramtype">const vec &amp;&nbsp;</td>
209          <td class="paramname"> <em>cond</em>          </td>
210          <td>&nbsp;)&nbsp;</td>
211          <td><code> [inline, virtual, inherited]</code></td>
212        </tr>
213      </table>
214</div>
215<div class="memdoc">
216
217<p>
218Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">.
219<p>
220<dl compact><dt><b>Parameters:</b></dt><dd>
221  <table border="0" cellspacing="2" cellpadding="0">
222    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
223  </table>
224</dl>
225
226<p>References <a class="el" href="libBM_8h-source.html#l00250">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00233">bdm::mpdf::ep</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p>
227
228<p>Referenced by <a class="el" href="libPF_8h-source.html#l00143">bdm::MPF&lt; BM_T &gt;::bayes()</a>, <a class="el" href="libPF_8cpp-source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="libDS_8cpp-source.html#l00044">bdm::ArxDS::step()</a>.</p>
229
230</div>
231</div><p>
232<a class="anchor" name="ee26963a637b2ea1fb1933652981e652"></a><!-- doxytag: member="bdm::mprod::samplecond_m" ref="ee26963a637b2ea1fb1933652981e652" args="(const vec &amp;cond, vec &amp;ll, int N)" -->
233<div class="memitem">
234<div class="memproto">
235      <table class="memname">
236        <tr>
237          <td class="memname">virtual mat bdm::mpdf::samplecond_m           </td>
238          <td>(</td>
239          <td class="paramtype">const vec &amp;&nbsp;</td>
240          <td class="paramname"> <em>cond</em>, </td>
241        </tr>
242        <tr>
243          <td class="paramkey"></td>
244          <td></td>
245          <td class="paramtype">vec &amp;&nbsp;</td>
246          <td class="paramname"> <em>ll</em>, </td>
247        </tr>
248        <tr>
249          <td class="paramkey"></td>
250          <td></td>
251          <td class="paramtype">int&nbsp;</td>
252          <td class="paramname"> <em>N</em></td><td>&nbsp;</td>
253        </tr>
254        <tr>
255          <td></td>
256          <td>)</td>
257          <td></td><td></td><td><code> [inline, virtual, inherited]</code></td>
258        </tr>
259      </table>
260</div>
261<div class="memdoc">
262
263<p>
264Returns.
265<p>
266<dl compact><dt><b>Parameters:</b></dt><dd>
267  <table border="0" cellspacing="2" cellpadding="0">
268    <tr><td valign="top"></td><td valign="top"><em>N</em>&nbsp;</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>
269    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
270    <tr><td valign="top"></td><td valign="top"><em>ll</em>&nbsp;</td><td>is a return value of log-likelihood of the sample. </td></tr>
271  </table>
272</dl>
273
274<p>References <a class="el" href="libBM_8h-source.html#l00250">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00086">bdm::RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00233">bdm::mpdf::ep</a>, <a class="el" href="classbdm_1_1epdf.html#a8e39e2ff5e5cf5471bc159530d3b2d3">bdm::epdf::evallog()</a>, <a class="el" href="libBM_8h-source.html#l00229">bdm::mpdf::rv</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p>
275
276</div>
277</div><p>
278<hr>The documentation for this class was generated from the following file:<ul>
279<li><a class="el" href="emix_8h-source.html">emix.h</a></ul>
280</div>
281<hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 10:20:52 2009 for mixpp by&nbsp;
282<a href="http://www.doxygen.org/index.html">
283<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
284</body>
285</html>
Note: See TracBrowser for help on using the browser.