root/doc/html/classbdm_1_1mlstudent.html @ 269

Revision 269, 22.4 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::mlstudent 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_1mlstudent.html">mlstudent</a>
28  </div>
29</div>
30<div class="contents">
31<h1>bdm::mlstudent Class Reference</h1><!-- doxytag: class="bdm::mlstudent" --><!-- doxytag: inherits="mlnorm&lt; ldmat &gt;" --><code>#include &lt;<a class="el" href="libEF_8h-source.html">libEF.h</a>&gt;</code>
32<p>
33<div class="dynheader">
34Inheritance diagram for bdm::mlstudent:</div>
35<div class="dynsection">
36<p><center><img src="classbdm_1_1mlstudent__inherit__graph.png" border="0" usemap="#bdm_1_1mlstudent__inherit__map" alt="Inheritance graph"></center>
37<map name="bdm_1_1mlstudent__inherit__map">
38<area shape="rect" href="classbdm_1_1mlnorm.html" title="bdm::mlnorm\&lt; ldmat \&gt;" alt="" coords="5,343,181,369"><area shape="rect" href="classbdm_1_1mEF.html" title="Exponential family model." alt="" coords="25,167,111,193"><area shape="rect" href="classbdm_1_1mlnorm.html" title="Normal distributed linear function with linear function of mean value;." alt="" coords="89,247,257,273"><area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="23,87,113,113"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="12,7,124,33"></map>
39<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
40<div class="dynheader">
41Collaboration diagram for bdm::mlstudent:</div>
42<div class="dynsection">
43<p><center><img src="classbdm_1_1mlstudent__coll__graph.png" border="0" usemap="#bdm_1_1mlstudent__coll__map" alt="Collaboration graph"></center>
44<map name="bdm_1_1mlstudent__coll__map">
45<area shape="rect" href="classbdm_1_1mlnorm.html" title="bdm::mlnorm\&lt; ldmat \&gt;" alt="" coords="107,607,283,633"><area shape="rect" href="classbdm_1_1mEF.html" title="Exponential family model." alt="" coords="7,380,92,407"><area shape="rect" href="classbdm_1_1mlnorm.html" title="Normal distributed linear function with linear function of mean value;." alt="" coords="23,476,191,503"><area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="27,284,117,311"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="84,7,196,33"><area shape="rect" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables." alt="" coords="28,87,103,113"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="83,185,168,212"><area shape="rect" href="classbdm_1_1eEF.html" title="General conjugate exponential family posterior density." alt="" coords="228,284,308,311"><area shape="rect" href="classbdm_1_1enorm.html" title="bdm::enorm\&lt; ldmat \&gt;" alt="" coords="215,476,383,503"><area shape="rect" href="classbdm_1_1enorm.html" title="Gaussian density with positive definite (decomposed) covariance matrix." alt="" coords="116,380,276,407"><area shape="rect" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD)." alt="" coords="364,380,423,407"><area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square&#45;root form..." alt="" coords="363,284,424,311"></map>
46<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
47
48<p>
49<a href="classbdm_1_1mlstudent-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
50<tr><td></td></tr>
51<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
52<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc2b6a8c8ba7946e6a3f2b66aa56f288"></a><!-- doxytag: member="bdm::mlstudent::mlstudent" ref="bc2b6a8c8ba7946e6a3f2b66aa56f288" args="(const RV &amp;rv0, const RV &amp;rvc0)" -->
53&nbsp;</td><td class="memItemRight" valign="bottom"><b>mlstudent</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rv0, const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rvc0)</td></tr>
54
55<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4cdf79aac1b2165c0290e73810a0e4a3"></a><!-- doxytag: member="bdm::mlstudent::set_parameters" ref="4cdf79aac1b2165c0290e73810a0e4a3" args="(const mat &amp;A0, const vec &amp;mu0, const ldmat &amp;R0, const ldmat &amp;Lambda0)" -->
56void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (const mat &amp;A0, const vec &amp;mu0, const <a class="el" href="classldmat.html">ldmat</a> &amp;R0, const <a class="el" href="classldmat.html">ldmat</a> &amp;Lambda0)</td></tr>
57
58<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="efd37560585c8613897f30d3c2f58d0d"></a><!-- doxytag: member="bdm::mlstudent::condition" ref="efd37560585c8613897f30d3c2f58d0d" args="(const vec &amp;cond)" -->
59void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlstudent.html#efd37560585c8613897f30d3c2f58d0d">condition</a> (const vec &amp;cond)</td></tr>
60
61<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set value of <code>rvc</code> . Result of this operation is stored in <code><a class="el" href="classbdm_1_1epdf.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>
62<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d18dec3167584338a4775c1d165d96f"></a><!-- doxytag: member="bdm::mlstudent::set_parameters" ref="5d18dec3167584338a4775c1d165d96f" args="(const mat &amp;A, const vec &amp;mu0, const ldmat &amp;R)" -->
63void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#5d18dec3167584338a4775c1d165d96f">set_parameters</a> (const mat &amp;A, const vec &amp;mu0, const <a class="el" href="classldmat.html">ldmat</a> &amp;R)</td></tr>
64
65<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr>
66<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56e587952f94fcac6cfc999eae6dbced"></a><!-- doxytag: member="bdm::mlstudent::_mu_const" ref="56e587952f94fcac6cfc999eae6dbced" args="()" -->
67vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#56e587952f94fcac6cfc999eae6dbced">_mu_const</a> ()</td></tr>
68
69<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
70<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="262a2a486bff585f34bb6a5005b02614"></a><!-- doxytag: member="bdm::mlstudent::_A" ref="262a2a486bff585f34bb6a5005b02614" args="()" -->
71mat &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#262a2a486bff585f34bb6a5005b02614">_A</a> ()</td></tr>
72
73<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
74<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78120ecd1c2b1d7e80124b4603504604"></a><!-- doxytag: member="bdm::mlstudent::_R" ref="78120ecd1c2b1d7e80124b4603504604" args="()" -->
75mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#78120ecd1c2b1d7e80124b4603504604">_R</a> ()</td></tr>
76
77<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
78<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>
79
80<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>
81<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>
82
83<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns.  <a href="#ee26963a637b2ea1fb1933652981e652"></a><br></td></tr>
84<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6336a8a72462e2a56a3989a220f18b1b"></a><!-- doxytag: member="bdm::mlstudent::evallogcond" ref="6336a8a72462e2a56a3989a220f18b1b" args="(const vec &amp;dt, const vec &amp;cond)" -->
85virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#6336a8a72462e2a56a3989a220f18b1b">evallogcond</a> (const vec &amp;dt, const vec &amp;cond)</td></tr>
86
87<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>
88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0b0ed1ed663071bb7cf4a1349eb94fcb"></a><!-- doxytag: member="bdm::mlstudent::evallogcond_m" ref="0b0ed1ed663071bb7cf4a1349eb94fcb" args="(const mat &amp;Dt, const vec &amp;cond)" -->
89virtual 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>
90
91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr>
92<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3aba7311038bf990d706a64cab60cf8"></a><!-- doxytag: member="bdm::mlstudent::_rvc" ref="b3aba7311038bf990d706a64cab60cf8" args="() const " -->
93<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>
94
95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
96<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222d5280e309c5a053ba73841e98c151"></a><!-- doxytag: member="bdm::mlstudent::_rv" ref="222d5280e309c5a053ba73841e98c151" args="() const " -->
97<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>
98
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
100<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1892fe3933488942253679f068e9e7f6"></a><!-- doxytag: member="bdm::mlstudent::_epdf" ref="1892fe3933488942253679f068e9e7f6" args="()" -->
101<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>
102
103<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
104<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e843fd11c410a99dad2b88c55aca80"></a><!-- doxytag: member="bdm::mlstudent::_e" ref="05e843fd11c410a99dad2b88c55aca80" args="()" -->
105<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>
106
107<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
108<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
109<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41595144a79594acbe288c6b59412657"></a><!-- doxytag: member="bdm::mlstudent::Lambda" ref="41595144a79594acbe288c6b59412657" args="" -->
110<a class="el" href="classldmat.html">ldmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>Lambda</b></td></tr>
111
112<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="72e9bda4d6684e07faafc4b2192daf39"></a><!-- doxytag: member="bdm::mlstudent::_R" ref="72e9bda4d6684e07faafc4b2192daf39" args="" -->
113<a class="el" href="classldmat.html">ldmat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_R</b></td></tr>
114
115<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c063ad6cb6e079ee11bc4128c2c9fe8"></a><!-- doxytag: member="bdm::mlstudent::Re" ref="1c063ad6cb6e079ee11bc4128c2c9fe8" args="" -->
116<a class="el" href="classldmat.html">ldmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>Re</b></td></tr>
117
118<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="150ad6acb223b0a0abeaf92346686dcd"></a><!-- doxytag: member="bdm::mlstudent::epdf" ref="150ad6acb223b0a0abeaf92346686dcd" args="" -->
119<a class="el" href="classbdm_1_1enorm.html">enorm</a>&lt; <a class="el" href="classldmat.html">ldmat</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#150ad6acb223b0a0abeaf92346686dcd">epdf</a></td></tr>
120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal epdf that arise by conditioning on <code>rvc</code>. <br></td></tr>
122<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8207ae86d1722102897e139a23e29af8"></a><!-- doxytag: member="bdm::mlstudent::A" ref="8207ae86d1722102897e139a23e29af8" args="" -->
123mat&nbsp;</td><td class="memItemRight" valign="bottom"><b>A</b></td></tr>
124
125<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a019144d414d1737aea331ffe1c3845"></a><!-- doxytag: member="bdm::mlstudent::mu_const" ref="3a019144d414d1737aea331ffe1c3845" args="" -->
126vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>mu_const</b></td></tr>
127
128<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dea5ea658d5020c11da91275f592244b"></a><!-- doxytag: member="bdm::mlstudent::_mu" ref="dea5ea658d5020c11da91275f592244b" args="" -->
129vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_mu</b></td></tr>
130
131<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bcfb45435d30983f436d41c298cbb51"></a><!-- doxytag: member="bdm::mlstudent::rv" ref="9bcfb45435d30983f436d41c298cbb51" args="" -->
132<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>
133
134<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modeled random variable <br></td></tr>
135<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mlstudent::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" -->
136<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>
137
138<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">random variable in condition <br></td></tr>
139<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5eea43c56d38e4441bfb30270db949c0"></a><!-- doxytag: member="bdm::mlstudent::ep" ref="5eea43c56d38e4441bfb30270db949c0" args="" -->
140<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>
141
142<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>
143<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
144<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1917009347bb410f73bf827df8767b09"></a><!-- doxytag: member="bdm::mlstudent::operator&lt;&lt;" ref="1917009347bb410f73bf827df8767b09" args="(std::ostream &amp;os, mlnorm&lt; sq_M &gt; &amp;ml)" -->
145std::ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;os, <a class="el" href="classbdm_1_1mlnorm.html">mlnorm</a>&lt; sq_M &gt; &amp;ml)</td></tr>
146
147</table>
148<hr><a name="_details"></a><h2>Detailed Description</h2>
149(Approximate) Student t density with linear function of mean value<p>
150The internal <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> of this class is of the type of a Gaussian (<a class="el" href="classbdm_1_1enorm.html" title="Gaussian density with positive definite (decomposed) covariance matrix.">enorm</a>). However, each conditioning is trying to assure the best possible approximation by taking into account the zeta function. See [] for reference.<p>
151Perhaps a moment-matching technique? <hr><h2>Member Function Documentation</h2>
152<a class="anchor" name="f0c1db6fcbb3aae2dd6123884457a367"></a><!-- doxytag: member="bdm::mlstudent::samplecond" ref="f0c1db6fcbb3aae2dd6123884457a367" args="(const vec &amp;cond)" -->
153<div class="memitem">
154<div class="memproto">
155      <table class="memname">
156        <tr>
157          <td class="memname">virtual vec bdm::mpdf::samplecond           </td>
158          <td>(</td>
159          <td class="paramtype">const vec &amp;&nbsp;</td>
160          <td class="paramname"> <em>cond</em>          </td>
161          <td>&nbsp;)&nbsp;</td>
162          <td><code> [inline, virtual, inherited]</code></td>
163        </tr>
164      </table>
165</div>
166<div class="memdoc">
167
168<p>
169Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">.
170<p>
171<dl compact><dt><b>Parameters:</b></dt><dd>
172  <table border="0" cellspacing="2" cellpadding="0">
173    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
174  </table>
175</dl>
176
177<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>
178
179<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>
180
181</div>
182</div><p>
183<a class="anchor" name="ee26963a637b2ea1fb1933652981e652"></a><!-- doxytag: member="bdm::mlstudent::samplecond_m" ref="ee26963a637b2ea1fb1933652981e652" args="(const vec &amp;cond, vec &amp;ll, int N)" -->
184<div class="memitem">
185<div class="memproto">
186      <table class="memname">
187        <tr>
188          <td class="memname">virtual mat bdm::mpdf::samplecond_m           </td>
189          <td>(</td>
190          <td class="paramtype">const vec &amp;&nbsp;</td>
191          <td class="paramname"> <em>cond</em>, </td>
192        </tr>
193        <tr>
194          <td class="paramkey"></td>
195          <td></td>
196          <td class="paramtype">vec &amp;&nbsp;</td>
197          <td class="paramname"> <em>ll</em>, </td>
198        </tr>
199        <tr>
200          <td class="paramkey"></td>
201          <td></td>
202          <td class="paramtype">int&nbsp;</td>
203          <td class="paramname"> <em>N</em></td><td>&nbsp;</td>
204        </tr>
205        <tr>
206          <td></td>
207          <td>)</td>
208          <td></td><td></td><td><code> [inline, virtual, inherited]</code></td>
209        </tr>
210      </table>
211</div>
212<div class="memdoc">
213
214<p>
215Returns.
216<p>
217<dl compact><dt><b>Parameters:</b></dt><dd>
218  <table border="0" cellspacing="2" cellpadding="0">
219    <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>
220    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
221    <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>
222  </table>
223</dl>
224
225<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>
226
227</div>
228</div><p>
229<hr>The documentation for this class was generated from the following file:<ul>
230<li><a class="el" href="libEF_8h-source.html">libEF.h</a></ul>
231</div>
232<hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 10:21:07 2009 for mixpp by&nbsp;
233<a href="http://www.doxygen.org/index.html">
234<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
235</body>
236</html>
Note: See TracBrowser for help on using the browser.