root/doc/html/classbdm_1_1mlstudent.html @ 259

Revision 259, 22.2 kB (checked in by smidl, 15 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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
15      <li><a href="files.html"><span>Files</span></a></li>
16    </ul>
17  </div>
18  <div class="tabs">
19    <ul>
20      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
21      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
22      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
23    </ul>
24  </div>
25  <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mlstudent.html">mlstudent</a>
26  </div>
27</div>
28<div class="contents">
29<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>
30<p>
31<div class="dynheader">
32Inheritance diagram for bdm::mlstudent:</div>
33<div class="dynsection">
34<p><center><img src="classbdm_1_1mlstudent__inherit__graph.png" border="0" usemap="#bdm_1_1mlstudent__inherit__map" alt="Inheritance graph"></center>
35<map name="bdm_1_1mlstudent__inherit__map">
36<area shape="rect" href="classbdm_1_1mlnorm.html" title="bdm::mlnorm\&lt; ldmat \&gt;" alt="" coords="5,263,181,289"><area shape="rect" href="classbdm_1_1mEF.html" title="Exponential family model." alt="" coords="25,87,111,113"><area shape="rect" href="classbdm_1_1mlnorm.html" title="Normal distributed linear function with linear function of mean value;." alt="" coords="89,167,257,193"><area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="23,7,113,33"></map>
37<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
38<div class="dynheader">
39Collaboration diagram for bdm::mlstudent:</div>
40<div class="dynsection">
41<p><center><img src="classbdm_1_1mlstudent__coll__graph.png" border="0" usemap="#bdm_1_1mlstudent__coll__map" alt="Collaboration graph"></center>
42<map name="bdm_1_1mlstudent__coll__map">
43<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_1RV.html" title="Class representing variables, most often random variables." alt="" coords="45,87,120,113"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="115,185,200,212"><area shape="rect" href="classbdm_1_1base.html" title="Root class of BDM objects." alt="" coords="87,7,175,33"><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>
44<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
45
46<p>
47<a href="classbdm_1_1mlstudent-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
48<tr><td></td></tr>
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="bc2b6a8c8ba7946e6a3f2b66aa56f288"></a><!-- doxytag: member="bdm::mlstudent::mlstudent" ref="bc2b6a8c8ba7946e6a3f2b66aa56f288" args="(const RV &amp;rv0, const RV &amp;rvc0)" -->
51&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>
52
53<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)" -->
54void&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>
55
56<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)" -->
57void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlstudent.html#efd37560585c8613897f30d3c2f58d0d">condition</a> (const vec &amp;cond)</td></tr>
58
59<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>
60<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)" -->
61void&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>
62
63<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr>
64<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56e587952f94fcac6cfc999eae6dbced"></a><!-- doxytag: member="bdm::mlstudent::_mu_const" ref="56e587952f94fcac6cfc999eae6dbced" args="()" -->
65vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#56e587952f94fcac6cfc999eae6dbced">_mu_const</a> ()</td></tr>
66
67<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
68<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="262a2a486bff585f34bb6a5005b02614"></a><!-- doxytag: member="bdm::mlstudent::_A" ref="262a2a486bff585f34bb6a5005b02614" args="()" -->
69mat &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#262a2a486bff585f34bb6a5005b02614">_A</a> ()</td></tr>
70
71<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
72<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78120ecd1c2b1d7e80124b4603504604"></a><!-- doxytag: member="bdm::mlstudent::_R" ref="78120ecd1c2b1d7e80124b4603504604" args="()" -->
73mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#78120ecd1c2b1d7e80124b4603504604">_R</a> ()</td></tr>
74
75<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
76<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#e4848a428d8ef0549c6e4a9ed386d9f2">samplecond</a> (const vec &amp;cond, double &amp;ll)</td></tr>
77
78<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="#e4848a428d8ef0549c6e4a9ed386d9f2"></a><br></td></tr>
79<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>
80
81<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns.  <a href="#ee26963a637b2ea1fb1933652981e652"></a><br></td></tr>
82<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)" -->
83virtual 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>
84
85<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>
86<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)" -->
87virtual 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>
88
89<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr>
90<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3aba7311038bf990d706a64cab60cf8"></a><!-- doxytag: member="bdm::mlstudent::_rvc" ref="b3aba7311038bf990d706a64cab60cf8" args="() const " -->
91<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>
92
93<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
94<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222d5280e309c5a053ba73841e98c151"></a><!-- doxytag: member="bdm::mlstudent::_rv" ref="222d5280e309c5a053ba73841e98c151" args="() const " -->
95<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>
96
97<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
98<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1892fe3933488942253679f068e9e7f6"></a><!-- doxytag: member="bdm::mlstudent::_epdf" ref="1892fe3933488942253679f068e9e7f6" args="()" -->
99<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>
100
101<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
102<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e843fd11c410a99dad2b88c55aca80"></a><!-- doxytag: member="bdm::mlstudent::_e" ref="05e843fd11c410a99dad2b88c55aca80" args="()" -->
103<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>
104
105<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
106<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
107<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41595144a79594acbe288c6b59412657"></a><!-- doxytag: member="bdm::mlstudent::Lambda" ref="41595144a79594acbe288c6b59412657" args="" -->
108<a class="el" href="classldmat.html">ldmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>Lambda</b></td></tr>
109
110<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="72e9bda4d6684e07faafc4b2192daf39"></a><!-- doxytag: member="bdm::mlstudent::_R" ref="72e9bda4d6684e07faafc4b2192daf39" args="" -->
111<a class="el" href="classldmat.html">ldmat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_R</b></td></tr>
112
113<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c063ad6cb6e079ee11bc4128c2c9fe8"></a><!-- doxytag: member="bdm::mlstudent::Re" ref="1c063ad6cb6e079ee11bc4128c2c9fe8" args="" -->
114<a class="el" href="classldmat.html">ldmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>Re</b></td></tr>
115
116<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="150ad6acb223b0a0abeaf92346686dcd"></a><!-- doxytag: member="bdm::mlstudent::epdf" ref="150ad6acb223b0a0abeaf92346686dcd" args="" -->
117<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>
118
119<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal epdf that arise by conditioning on <code>rvc</code>. <br></td></tr>
120<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8207ae86d1722102897e139a23e29af8"></a><!-- doxytag: member="bdm::mlstudent::A" ref="8207ae86d1722102897e139a23e29af8" args="" -->
121mat&nbsp;</td><td class="memItemRight" valign="bottom"><b>A</b></td></tr>
122
123<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a019144d414d1737aea331ffe1c3845"></a><!-- doxytag: member="bdm::mlstudent::mu_const" ref="3a019144d414d1737aea331ffe1c3845" args="" -->
124vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>mu_const</b></td></tr>
125
126<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dea5ea658d5020c11da91275f592244b"></a><!-- doxytag: member="bdm::mlstudent::_mu" ref="dea5ea658d5020c11da91275f592244b" args="" -->
127vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_mu</b></td></tr>
128
129<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bcfb45435d30983f436d41c298cbb51"></a><!-- doxytag: member="bdm::mlstudent::rv" ref="9bcfb45435d30983f436d41c298cbb51" args="" -->
130<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>
131
132<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modeled random variable <br></td></tr>
133<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mlstudent::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" -->
134<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>
135
136<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">random variable in condition <br></td></tr>
137<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5eea43c56d38e4441bfb30270db949c0"></a><!-- doxytag: member="bdm::mlstudent::ep" ref="5eea43c56d38e4441bfb30270db949c0" args="" -->
138<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>
139
140<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>
141<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
142<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)" -->
143std::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>
144
145</table>
146<hr><a name="_details"></a><h2>Detailed Description</h2>
147(Approximate) Student t density with linear function of mean value <hr><h2>Member Function Documentation</h2>
148<a class="anchor" name="e4848a428d8ef0549c6e4a9ed386d9f2"></a><!-- doxytag: member="bdm::mlstudent::samplecond" ref="e4848a428d8ef0549c6e4a9ed386d9f2" args="(const vec &amp;cond, double &amp;ll)" -->
149<div class="memitem">
150<div class="memproto">
151      <table class="memname">
152        <tr>
153          <td class="memname">virtual vec bdm::mpdf::samplecond           </td>
154          <td>(</td>
155          <td class="paramtype">const vec &amp;&nbsp;</td>
156          <td class="paramname"> <em>cond</em>, </td>
157        </tr>
158        <tr>
159          <td class="paramkey"></td>
160          <td></td>
161          <td class="paramtype">double &amp;&nbsp;</td>
162          <td class="paramname"> <em>ll</em></td><td>&nbsp;</td>
163        </tr>
164        <tr>
165          <td></td>
166          <td>)</td>
167          <td></td><td></td><td><code> [inline, virtual, inherited]</code></td>
168        </tr>
169      </table>
170</div>
171<div class="memdoc">
172
173<p>
174Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">.
175<p>
176<dl compact><dt><b>Parameters:</b></dt><dd>
177  <table border="0" cellspacing="2" cellpadding="0">
178    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
179    <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>
180  </table>
181</dl>
182
183<p>Reimplemented in <a class="el" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">bdm::mprod</a>.</p>
184
185<p>References <a class="el" href="libBM_8h-source.html#l00243">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00226">bdm::mpdf::ep</a>, <a class="el" href="classbdm_1_1epdf.html#a8e39e2ff5e5cf5471bc159530d3b2d3">bdm::epdf::evallog()</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p>
186
187<p>Referenced by <a class="el" href="libPF_8h-source.html#l00144">bdm::MPF&lt; BM_T &gt;::bayes()</a>, and <a class="el" href="libPF_8cpp-source.html#l00007">bdm::PF::bayes()</a>.</p>
188
189</div>
190</div><p>
191<a class="anchor" name="ee26963a637b2ea1fb1933652981e652"></a><!-- doxytag: member="bdm::mlstudent::samplecond_m" ref="ee26963a637b2ea1fb1933652981e652" args="(const vec &amp;cond, vec &amp;ll, int N)" -->
192<div class="memitem">
193<div class="memproto">
194      <table class="memname">
195        <tr>
196          <td class="memname">virtual mat bdm::mpdf::samplecond_m           </td>
197          <td>(</td>
198          <td class="paramtype">const vec &amp;&nbsp;</td>
199          <td class="paramname"> <em>cond</em>, </td>
200        </tr>
201        <tr>
202          <td class="paramkey"></td>
203          <td></td>
204          <td class="paramtype">vec &amp;&nbsp;</td>
205          <td class="paramname"> <em>ll</em>, </td>
206        </tr>
207        <tr>
208          <td class="paramkey"></td>
209          <td></td>
210          <td class="paramtype">int&nbsp;</td>
211          <td class="paramname"> <em>N</em></td><td>&nbsp;</td>
212        </tr>
213        <tr>
214          <td></td>
215          <td>)</td>
216          <td></td><td></td><td><code> [inline, virtual, inherited]</code></td>
217        </tr>
218      </table>
219</div>
220<div class="memdoc">
221
222<p>
223Returns.
224<p>
225<dl compact><dt><b>Parameters:</b></dt><dd>
226  <table border="0" cellspacing="2" cellpadding="0">
227    <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>
228    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
229    <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>
230  </table>
231</dl>
232
233<p>References <a class="el" href="libBM_8h-source.html#l00243">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00081">bdm::RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00226">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#l00222">bdm::mpdf::rv</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p>
234
235</div>
236</div><p>
237<hr>The documentation for this class was generated from the following file:<ul>
238<li>work/git/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul>
239</div>
240<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jan 27 16:31:43 2009 for mixpp by&nbsp;
241<a href="http://www.doxygen.org/index.html">
242<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
243</body>
244</html>
Note: See TracBrowser for help on using the browser.