root/library/doc/html/classbdm_1_1mlstudent.html @ 480

Revision 472, 25.0 kB (checked in by mido, 15 years ago)

obnovena dokumentace, vcetne pridani mnoha novych doc-souboru do svn

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="tabs.css" rel="stylesheet" type="text/css">
5<link href="doxygen.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.9 -->
8<script type="text/javascript">
9<!--
10function changeDisplayState (e){
11  var num=this.id.replace(/[^[0-9]/g,'');
12  var button=this.firstChild;
13  var sectionDiv=document.getElementById('dynsection'+num);
14  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
15    sectionDiv.style.display='block';
16    button.src='open.gif';
17  }else{
18    sectionDiv.style.display='none';
19    button.src='closed.gif';
20  }
21}
22function initDynSections(){
23  var divs=document.getElementsByTagName('div');
24  var sectionCounter=1;
25  for(var i=0;i<divs.length-1;i++){
26    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
27      var header=divs[i];
28      var section=divs[i+1];
29      var button=header.firstChild;
30      if (button!='IMG'){
31        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
32        button=document.createElement('img');
33        divs[i].insertBefore(button,divs[i].firstChild);
34      }
35      header.style.cursor='pointer';
36      header.onclick=changeDisplayState;
37      header.id='dynheader'+sectionCounter;
38      button.src='closed.gif';
39      section.id='dynsection'+sectionCounter;
40      section.style.display='none';
41      section.style.marginLeft='14px';
42      sectionCounter++;
43    }
44  }
45}
46window.onload = initDynSections;
47-->
48</script>
49<div class="navigation" id="top">
50  <div class="tabs">
51    <ul>
52      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
53      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
55      <li><a href="files.html"><span>Files</span></a></li>
56    </ul>
57  </div>
58  <div class="tabs">
59    <ul>
60      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
61      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
62      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
63      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
64    </ul>
65  </div>
66  <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mlstudent.html">mlstudent</a>
67  </div>
68</div>
69<div class="contents">
70<h1>bdm::mlstudent Class Reference</h1><!-- doxytag: class="bdm::mlstudent" --><!-- doxytag: inherits="mlnorm&lt; ldmat &gt;" --><code>#include &lt;<a class="el" href="exp__family_8h_source.html">exp_family.h</a>&gt;</code>
71<p>
72
73<p>
74<a href="classbdm_1_1mlstudent-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
75<tr><td></td></tr>
76<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
77<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)" -->
78void&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>
79
80<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlstudent.html#efd37560585c8613897f30d3c2f58d0d">condition</a> (const vec &amp;cond)</td></tr>
81
82<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56e587952f94fcac6cfc999eae6dbced"></a><!-- doxytag: member="bdm::mlstudent::_mu_const" ref="56e587952f94fcac6cfc999eae6dbced" args="()" -->
83vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#56e587952f94fcac6cfc999eae6dbced">_mu_const</a> ()</td></tr>
84
85<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
86<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="262a2a486bff585f34bb6a5005b02614"></a><!-- doxytag: member="bdm::mlstudent::_A" ref="262a2a486bff585f34bb6a5005b02614" args="()" -->
87mat &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#262a2a486bff585f34bb6a5005b02614">_A</a> ()</td></tr>
88
89<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
90<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78120ecd1c2b1d7e80124b4603504604"></a><!-- doxytag: member="bdm::mlstudent::_R" ref="78120ecd1c2b1d7e80124b4603504604" args="()" -->
91mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#78120ecd1c2b1d7e80124b4603504604">_R</a> ()</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">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#8582928555c309a2865f385dd0441fd1">from_setting</a> (const Setting &amp;set)</td></tr>
95
96<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::mlstudent::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" -->
97virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr>
98
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr>
100<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::mlstudent::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &amp;set) const " -->
101virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &amp;set) const </td></tr>
102
103<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr>
104<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::mlstudent::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" -->
105virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr>
106
107<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method TODO. <br></td></tr>
108<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
109<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)" -->
110void&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>
111
112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr>
113<tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr>
114<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#b024f2e636e5507c755de4a6df1f1e99">samplecond</a> (const vec &amp;cond)</td></tr>
115
116<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_11.png"><a href="#b024f2e636e5507c755de4a6df1f1e99"></a><br></td></tr>
117<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#6e497d501331057309d2fddf63259d1a">samplecond_m</a> (const vec &amp;cond, int N)</td></tr>
118
119<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns.  <a href="#6e497d501331057309d2fddf63259d1a"></a><br></td></tr>
120<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cfcbb897bf42015a7979b17d891fd9b5"></a><!-- doxytag: member="bdm::mlstudent::evallogcond" ref="cfcbb897bf42015a7979b17d891fd9b5" args="(const vec &amp;dt, const vec &amp;cond)" -->
121virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#cfcbb897bf42015a7979b17d891fd9b5">evallogcond</a> (const vec &amp;dt, const vec &amp;cond)</td></tr>
122
123<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>
124<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f97c61ecfb1f44ef6f08dee7bc15eab3"></a><!-- doxytag: member="bdm::mlstudent::evallogcond_m" ref="f97c61ecfb1f44ef6f08dee7bc15eab3" args="(const mat &amp;Dt, const vec &amp;cond)" -->
125virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#f97c61ecfb1f44ef6f08dee7bc15eab3">evallogcond_m</a> (const mat &amp;Dt, const vec &amp;cond)</td></tr>
126
127<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr>
128<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d7d3c23e3273e97c12c396dcc06b606"></a><!-- doxytag: member="bdm::mlstudent::evallogcond_m" ref="2d7d3c23e3273e97c12c396dcc06b606" args="(const Array&lt; vec &gt; &amp;Dt, const vec &amp;cond)" -->
129virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#2d7d3c23e3273e97c12c396dcc06b606">evallogcond_m</a> (const Array&lt; vec &gt; &amp;Dt, const vec &amp;cond)</td></tr>
130
131<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array&lt;vec&gt; version of evallogcond. <br></td></tr>
132<tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr>
133<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5571482d150fbcb72cc36f6694ce1a10"></a><!-- doxytag: member="bdm::mlstudent::_rv" ref="5571482d150fbcb72cc36f6694ce1a10" args="()" -->
134<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>_rv</b> ()</td></tr>
135
136<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26001264236846897bd11e4baad47245"></a><!-- doxytag: member="bdm::mlstudent::_rvc" ref="26001264236846897bd11e4baad47245" args="()" -->
137<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>_rvc</b> ()</td></tr>
138
139<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c2bae3e1e90874e72941863974ec0ed"></a><!-- doxytag: member="bdm::mlstudent::dimension" ref="1c2bae3e1e90874e72941863974ec0ed" args="()" -->
140int&nbsp;</td><td class="memItemRight" valign="bottom"><b>dimension</b> ()</td></tr>
141
142<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mlstudent::dimensionc" ref="35e135910aed187b7290742f50e61bc8" args="()" -->
143int&nbsp;</td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr>
144
145<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4c2d7d3d1d75cca84993e77867d1ffbe"></a><!-- doxytag: member="bdm::mlstudent::e" ref="4c2d7d3d1d75cca84993e77867d1ffbe" args="()" -->
146<a class="el" href="classbdm_1_1epdf.html">epdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>e</b> ()</td></tr>
147
148<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ba1b384c9c1cb18422a8ba32a5d019"></a><!-- doxytag: member="bdm::mlstudent::set_ep" ref="a4ba1b384c9c1cb18422a8ba32a5d019" args="(shared_ptr&lt; epdf &gt; ep)" -->
149void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_ep</b> (<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> &gt; ep)</td></tr>
150
151<tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr>
152<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mlstudent::set_rvc" ref="7631a5570e4ade1420065e8df78f4401" args="(const RV &amp;rvc0)" -->
153void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_rvc</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rvc0)</td></tr>
154
155<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mlstudent::set_rv" ref="18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &amp;rv0)" -->
156void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_rv</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rv0)</td></tr>
157
158<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mlstudent::isnamed" ref="f8e3798150b42fd1f3e16ddbbe0e7045" args="()" -->
159bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr>
160
161<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
162<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41595144a79594acbe288c6b59412657"></a><!-- doxytag: member="bdm::mlstudent::Lambda" ref="41595144a79594acbe288c6b59412657" args="" -->
163<a class="el" href="classldmat.html">ldmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>Lambda</b></td></tr>
164
165<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="72e9bda4d6684e07faafc4b2192daf39"></a><!-- doxytag: member="bdm::mlstudent::_R" ref="72e9bda4d6684e07faafc4b2192daf39" args="" -->
166<a class="el" href="classldmat.html">ldmat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_R</b></td></tr>
167
168<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c063ad6cb6e079ee11bc4128c2c9fe8"></a><!-- doxytag: member="bdm::mlstudent::Re" ref="1c063ad6cb6e079ee11bc4128c2c9fe8" args="" -->
169<a class="el" href="classldmat.html">ldmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>Re</b></td></tr>
170
171<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6de45ab731143e70a94318df586c36ba"></a><!-- doxytag: member="bdm::mlstudent::iepdf" ref="6de45ab731143e70a94318df586c36ba" args="" -->
172<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1enorm.html">enorm</a>&lt; <a class="el" href="classldmat.html">ldmat</a> &gt; &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mlnorm.html#6de45ab731143e70a94318df586c36ba">iepdf</a></td></tr>
173
174<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal epdf that arise by conditioning on <code>rvc</code>. <br></td></tr>
175<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8207ae86d1722102897e139a23e29af8"></a><!-- doxytag: member="bdm::mlstudent::A" ref="8207ae86d1722102897e139a23e29af8" args="" -->
176mat&nbsp;</td><td class="memItemRight" valign="bottom"><b>A</b></td></tr>
177
178<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a019144d414d1737aea331ffe1c3845"></a><!-- doxytag: member="bdm::mlstudent::mu_const" ref="3a019144d414d1737aea331ffe1c3845" args="" -->
179vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>mu_const</b></td></tr>
180
181<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dea5ea658d5020c11da91275f592244b"></a><!-- doxytag: member="bdm::mlstudent::_mu" ref="dea5ea658d5020c11da91275f592244b" args="" -->
182vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_mu</b></td></tr>
183
184<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mlstudent::dimc" ref="7c1900976ff13dbc09c9729b3bbff9e6" args="" -->
185int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr>
186
187<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">dimension of the condition <br></td></tr>
188<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mlstudent::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" -->
189<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>
190
191<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">random variable in condition <br></td></tr>
192<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
193<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)" -->
194std::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>
195
196</table>
197<hr><a name="_details"></a><h2>Detailed Description</h2>
198(Approximate) Student t density with linear function of mean value<p>
199The 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>
200Perhaps a moment-matching technique? <hr><h2>Member Function Documentation</h2>
201<a class="anchor" name="efd37560585c8613897f30d3c2f58d0d"></a><!-- doxytag: member="bdm::mlstudent::condition" ref="efd37560585c8613897f30d3c2f58d0d" args="(const vec &amp;cond)" -->
202<div class="memitem">
203<div class="memproto">
204      <table class="memname">
205        <tr>
206          <td class="memname">void bdm::mlstudent::condition           </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]</code></td>
212        </tr>
213      </table>
214</div>
215<div class="memdoc">
216
217<p>
218Set 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.
219<p>Reimplemented from <a class="el" href="classbdm_1_1mlnorm.html#0dafc0196e7e07fd06dc6716e0e18bc2">bdm::mlnorm&lt; ldmat &gt;</a>.</p>
220
221<p>References <a class="el" href="exp__family_8h_source.html#l00560">bdm::mlnorm&lt; ldmat &gt;::_R()</a>, <a class="el" href="square__mat_8cpp_source.html#l00168">ldmat::invqform()</a>, and <a class="el" href="square__mat_8h_source.html#l00095">sqmat::rows()</a>.</p>
222
223</div>
224</div><p>
225<a class="anchor" name="8582928555c309a2865f385dd0441fd1"></a><!-- doxytag: member="bdm::mlstudent::from_setting" ref="8582928555c309a2865f385dd0441fd1" args="(const Setting &amp;set)" -->
226<div class="memitem">
227<div class="memproto">
228      <table class="memname">
229        <tr>
230          <td class="memname">void <a class="el" href="classbdm_1_1mlnorm.html">bdm::mlnorm</a>&lt; <a class="el" href="classldmat.html">ldmat</a>  &gt;::from_setting           </td>
231          <td>(</td>
232          <td class="paramtype">const Setting &amp;&nbsp;</td>
233          <td class="paramname"> <em>set</em>          </td>
234          <td>&nbsp;)&nbsp;</td>
235          <td><code> [inline, virtual, inherited]</code></td>
236        </tr>
237      </table>
238</div>
239<div class="memdoc">
240
241<p>
242Load from structure with elements: <div class="fragment"><pre class="fragment"> { rv = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span>
243   <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>= {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable in condition</span>
244   <span class="comment">// elements of offsprings</span>
245 }
246</pre></div> 
247<p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#30a0bceb948e287d497c578e371b1667">bdm::mpdf</a>.</p>
248
249<p>References <a class="el" href="exp__family_8h_source.html#l00565">bdm::mlnorm&lt; sq_T &gt;::from_setting()</a>, <a class="el" href="user__info_8h_source.html#l00387">bdm::UI::get()</a>, and <a class="el" href="exp__family_8h_source.html#l01261">bdm::mlnorm&lt; sq_T &gt;::set_parameters()</a>.</p>
250
251</div>
252</div><p>
253<a class="anchor" name="b024f2e636e5507c755de4a6df1f1e99"></a><!-- doxytag: member="bdm::mlstudent::samplecond" ref="b024f2e636e5507c755de4a6df1f1e99" args="(const vec &amp;cond)" -->
254<div class="memitem">
255<div class="memproto">
256      <table class="memname">
257        <tr>
258          <td class="memname">vec bdm::mpdf::samplecond           </td>
259          <td>(</td>
260          <td class="paramtype">const vec &amp;&nbsp;</td>
261          <td class="paramname"> <em>cond</em>          </td>
262          <td>&nbsp;)&nbsp;</td>
263          <td><code> [virtual, inherited]</code></td>
264        </tr>
265      </table>
266</div>
267<div class="memdoc">
268
269<p>
270Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_11.png">.
271<p>
272<dl compact><dt><b>Parameters:</b></dt><dd>
273  <table border="0" cellspacing="2" cellpadding="0">
274    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
275  </table>
276</dl>
277
278<p>Reimplemented in <a class="el" href="classbdm_1_1mprod.html#ee715a8013acf9892f6cb489db595555">bdm::mprod</a>.</p>
279
280<p>References <a class="el" href="bdmbase_8h_source.html#l00376">bdm::mpdf::condition()</a>.</p>
281
282<p>Referenced by <a class="el" href="particles_8h_source.html#l00207">bdm::MPF&lt; BM_T &gt;::bayes()</a>, <a class="el" href="particles_8cpp_source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="datasources_8cpp_source.html#l00043">bdm::ArxDS::step()</a>.</p>
283
284</div>
285</div><p>
286<a class="anchor" name="6e497d501331057309d2fddf63259d1a"></a><!-- doxytag: member="bdm::mlstudent::samplecond_m" ref="6e497d501331057309d2fddf63259d1a" args="(const vec &amp;cond, int N)" -->
287<div class="memitem">
288<div class="memproto">
289      <table class="memname">
290        <tr>
291          <td class="memname">mat bdm::mpdf::samplecond_m           </td>
292          <td>(</td>
293          <td class="paramtype">const vec &amp;&nbsp;</td>
294          <td class="paramname"> <em>cond</em>, </td>
295        </tr>
296        <tr>
297          <td class="paramkey"></td>
298          <td></td>
299          <td class="paramtype">int&nbsp;</td>
300          <td class="paramname"> <em>N</em></td><td>&nbsp;</td>
301        </tr>
302        <tr>
303          <td></td>
304          <td>)</td>
305          <td></td><td></td><td><code> [virtual, inherited]</code></td>
306        </tr>
307      </table>
308</div>
309<div class="memdoc">
310
311<p>
312Returns.
313<p>
314<dl compact><dt><b>Parameters:</b></dt><dd>
315  <table border="0" cellspacing="2" cellpadding="0">
316    <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_11.png">. </td></tr>
317    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
318  </table>
319</dl>
320
321<p>References <a class="el" href="bdmbase_8h_source.html#l00376">bdm::mpdf::condition()</a>.</p>
322
323</div>
324</div><p>
325<hr>The documentation for this class was generated from the following file:<ul>
326<li><a class="el" href="exp__family_8h_source.html">exp_family.h</a></ul>
327</div>
328<hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:07:02 2009 for mixpp by&nbsp;
329<a href="http://www.doxygen.org/index.html">
330<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
331</body>
332</html>
Note: See TracBrowser for help on using the browser.