root/library/doc/html/classbdm_1_1mmix.html @ 616

Revision 616, 24.3 kB (checked in by smidl, 15 years ago)

doc, sorted related pages

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>mixpp: bdm::mmix Class Reference</title>
6<link href="tabs.css" rel="stylesheet" type="text/css"/>
7<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8</head>
9<body>
10<!-- Generated by Doxygen 1.6.1 -->
11<script type="text/javascript">
12<!--
13function changeDisplayState (e){
14  var num=this.id.replace(/[^[0-9]/g,'');
15  var button=this.firstChild;
16  var sectionDiv=document.getElementById('dynsection'+num);
17  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
18    sectionDiv.style.display='block';
19    button.src='open.gif';
20  }else{
21    sectionDiv.style.display='none';
22    button.src='closed.gif';
23  }
24}
25function initDynSections(){
26  var divs=document.getElementsByTagName('div');
27  var sectionCounter=1;
28  for(var i=0;i<divs.length-1;i++){
29    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
30      var header=divs[i];
31      var section=divs[i+1];
32      var button=header.firstChild;
33      if (button!='IMG'){
34        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
35        button=document.createElement('img');
36        divs[i].insertBefore(button,divs[i].firstChild);
37      }
38      header.style.cursor='pointer';
39      header.onclick=changeDisplayState;
40      header.id='dynheader'+sectionCounter;
41      button.src='closed.gif';
42      section.id='dynsection'+sectionCounter;
43      section.style.display='none';
44      section.style.marginLeft='14px';
45      sectionCounter++;
46    }
47  }
48}
49window.onload = initDynSections;
50-->
51</script>
52<div class="navigation" id="top">
53  <div class="tabs">
54    <ul>
55      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
56      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
57      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
58      <li><a href="files.html"><span>Files</span></a></li>
59    </ul>
60  </div>
61  <div class="tabs">
62    <ul>
63      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
64      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
65      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
66      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
67    </ul>
68  </div>
69  <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mmix.html">mmix</a>
70  </div>
71</div>
72<div class="contents">
73<h1>bdm::mmix Class Reference</h1><!-- doxytag: class="bdm::mmix" --><!-- doxytag: inherits="bdm::mpdf" -->
74<p>Mixture of mpdfs with constant weights, all mpdfs are of equal <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> and RVC. 
75<a href="#_details">More...</a></p>
76<hr/><a name="_details"></a><h2>Detailed Description</h2>
77<p>Mixture of mpdfs with constant weights, all mpdfs are of equal <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> and RVC. </p>
78
79<p><code>#include &lt;<a class="el" href="emix_8h_source.html">emix.h</a>&gt;</code></p>
80
81<p><a href="classbdm_1_1mmix-members.html">List of all members.</a></p>
82<table border="0" cellpadding="0" cellspacing="0">
83<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
84<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0cf51b7daeb6751103e94e6b96213fb"></a><!-- doxytag: member="bdm::mmix::mmix" ref="aa0cf51b7daeb6751103e94e6b96213fb" args="()" -->
85&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#aa0cf51b7daeb6751103e94e6b96213fb">mmix</a> ()</td></tr>
86<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br/></td></tr>
87<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#a77f4e69ba18e685bdd1cb92e256a2ea2">set_parameters</a> (const vec &amp;w0, const Array&lt; <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> &gt; &gt; &amp;Coms0)</td></tr>
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set weights <code>w</code> and components <code>R</code><a href="#a77f4e69ba18e685bdd1cb92e256a2ea2"></a><br/></td></tr>
89<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a33372bfd0ddbcb9f78b4d4b563a24624"></a><!-- doxytag: member="bdm::mmix::evallogcond" ref="a33372bfd0ddbcb9f78b4d4b563a24624" args="(const vec &amp;dt, const vec &amp;cond)" -->
90double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#a33372bfd0ddbcb9f78b4d4b563a24624">evallogcond</a> (const vec &amp;dt, const vec &amp;cond)</td></tr>
91<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>
92<tr><td class="memItemLeft" align="right" valign="top">vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#ac97f01cd62bf63e67ddd5b1b8a56cf59">samplecond</a> (const vec &amp;cond)</td></tr>
93<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_16.png"/><a href="#ac97f01cd62bf63e67ddd5b1b8a56cf59"></a><br/></td></tr>
94<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#a30a0bceb948e287d497c578e371b1667">from_setting</a> (const Setting &amp;set)</td></tr>
95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load from structure with elements:.  <a href="#a30a0bceb948e287d497c578e371b1667"></a><br/></td></tr>
96<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::mmix::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" -->
97virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr>
98<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr>
99<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::mmix::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &amp;set) const " -->
100virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &amp;set) const </td></tr>
101<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr>
102<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::mmix::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" -->
103virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr>
104<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method TODO. <br/></td></tr>
105<tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr>
106<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp8096b150de0e99b4ea272a92f021107c"></a> </p>
107<br/><br/></div></td></tr>
108<tr><td class="memItemLeft" align="right" valign="top">virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#a6e497d501331057309d2fddf63259d1a">samplecond_m</a> (const vec &amp;cond, int N)</td></tr>
109<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns.  <a href="#a6e497d501331057309d2fddf63259d1a"></a><br/></td></tr>
110<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b0ed1ed663071bb7cf4a1349eb94fcb"></a><!-- doxytag: member="bdm::mmix::evallogcond_m" ref="a0b0ed1ed663071bb7cf4a1349eb94fcb" args="(const mat &amp;Dt, const vec &amp;cond)" -->
111virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#a0b0ed1ed663071bb7cf4a1349eb94fcb">evallogcond_m</a> (const mat &amp;Dt, const vec &amp;cond)</td></tr>
112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Matrix version of evallogcond. <br/></td></tr>
113<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2a0d03756f59924fd038980ee60bd904"></a><!-- doxytag: member="bdm::mmix::evallogcond_m" ref="a2a0d03756f59924fd038980ee60bd904" args="(const Array&lt; vec &gt; &amp;Dt, const vec &amp;cond)" -->
114virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#a2a0d03756f59924fd038980ee60bd904">evallogcond_m</a> (const Array&lt; vec &gt; &amp;Dt, const vec &amp;cond)</td></tr>
115<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array&lt;vec&gt; version of evallogcond. <br/></td></tr>
116<tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr>
117<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p>
118<br/><br/></div></td></tr>
119<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa0095f80870f15209bca68a8a7bad8a"></a><!-- doxytag: member="bdm::mmix::_rv" ref="aaa0095f80870f15209bca68a8a7bad8a" args="() const " -->
120const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_rv</b> () const </td></tr>
121<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a739d5202899bb56792a547c74e517a11"></a><!-- doxytag: member="bdm::mmix::_rvc" ref="a739d5202899bb56792a547c74e517a11" args="() const " -->
122const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_rvc</b> () const </td></tr>
123<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeea4a999ed9679181335927e9cb66d28"></a><!-- doxytag: member="bdm::mmix::dimension" ref="aeea4a999ed9679181335927e9cb66d28" args="() const " -->
124int&nbsp;</td><td class="memItemRight" valign="bottom"><b>dimension</b> () const </td></tr>
125<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mmix::dimensionc" ref="a35e135910aed187b7290742f50e61bc8" args="()" -->
126int&nbsp;</td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr>
127<tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr>
128<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp91e4120baa9617769b7119bfb087c022"></a> </p>
129<br/><br/></div></td></tr>
130<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mmix::set_rvc" ref="a7631a5570e4ade1420065e8df78f4401" args="(const RV &amp;rvc0)" -->
131void&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>
132<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mmix::set_rv" ref="a18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &amp;rv0)" -->
133void&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>
134<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mmix::isnamed" ref="af8e3798150b42fd1f3e16ddbbe0e7045" args="()" -->
135bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr>
136<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
137<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a147afacb393324bb3f9a7a89e33f835e"></a><!-- doxytag: member="bdm::mmix::set_ep" ref="a147afacb393324bb3f9a7a89e33f835e" args="(epdf &amp;iepdf)" -->
138void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#a147afacb393324bb3f9a7a89e33f835e">set_ep</a> (<a class="el" href="classbdm_1_1epdf.html">epdf</a> &amp;iepdf)</td></tr>
139<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set internal pointer <code>ep</code> to point to given <code>iepdf</code> <br/></td></tr>
140<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7555b377f8b5895c9b759c9628ee3e20"></a><!-- doxytag: member="bdm::mmix::set_ep" ref="a7555b377f8b5895c9b759c9628ee3e20" args="(epdf *iepdfp)" -->
141void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#a7555b377f8b5895c9b759c9628ee3e20">set_ep</a> (<a class="el" href="classbdm_1_1epdf.html">epdf</a> *iepdfp)</td></tr>
142<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set internal pointer <code>ep</code> to point to given <code>iepdf</code> <br/></td></tr>
143<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
144<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a63013f8c57dfb51babc3be7fc5d05809"></a><!-- doxytag: member="bdm::mmix::Coms" ref="a63013f8c57dfb51babc3be7fc5d05809" args="" -->
145Array&lt; <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> &gt; &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#a63013f8c57dfb51babc3be7fc5d05809">Coms</a></td></tr>
146<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Component (mpdfs). <br/></td></tr>
147<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af23a22414419b3a4a0a7d97157a03b17"></a><!-- doxytag: member="bdm::mmix::w" ref="af23a22414419b3a4a0a7d97157a03b17" args="" -->
148vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#af23a22414419b3a4a0a7d97157a03b17">w</a></td></tr>
149<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">weights of the components <br/></td></tr>
150<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8c740fff8807cb7f1df6a7e510e10805"></a><!-- doxytag: member="bdm::mmix::dummy_epdf" ref="a8c740fff8807cb7f1df6a7e510e10805" args="" -->
151<a class="el" href="classbdm_1_1epdf.html">epdf</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mmix.html#a8c740fff8807cb7f1df6a7e510e10805">dummy_epdf</a></td></tr>
152<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">dummy epdfs <br/></td></tr>
153<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mmix::dimc" ref="a7c1900976ff13dbc09c9729b3bbff9e6" args="" -->
154int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr>
155<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">dimension of the condition <br/></td></tr>
156<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mmix::rvc" ref="a5a5f08950daa08b85b01ddf4e1c36288" args="" -->
157<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#a5a5f08950daa08b85b01ddf4e1c36288">rvc</a></td></tr>
158<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">random variable in condition <br/></td></tr>
159</table>
160<hr/><h2>Member Function Documentation</h2>
161<a class="anchor" id="a30a0bceb948e287d497c578e371b1667"></a><!-- doxytag: member="bdm::mmix::from_setting" ref="a30a0bceb948e287d497c578e371b1667" args="(const Setting &amp;set)" -->
162<div class="memitem">
163<div class="memproto">
164      <table class="memname">
165        <tr>
166          <td class="memname">void bdm::mpdf::from_setting </td>
167          <td>(</td>
168          <td class="paramtype">const Setting &amp;&nbsp;</td>
169          <td class="paramname"> <em>set</em></td>
170          <td>&nbsp;)&nbsp;</td>
171          <td><code> [virtual, inherited]</code></td>
172        </tr>
173      </table>
174</div>
175<div class="memdoc">
176
177<p>Load from structure with elements:. </p>
178<div class="fragment"><pre class="fragment">         { <span class="keyword">class </span>= &quot;mpdf_offspring&quot;,
179           rv = {<span class="keyword">class</span>=<span class="stringliteral">&quot;RV&quot;</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span>
180           <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>= {<span class="keyword">class</span>=<span class="stringliteral">&quot;RV&quot;</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable in condition</span>
181           <span class="comment">// elements of offsprings</span>
182         }
183</pre></div> 
184<p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p>
185
186<p>Reimplemented in <a class="el" href="classbdm_1_1mepdf.html#a27ef18a3e3b1b5de02739d1324bf25fb">bdm::mepdf</a>, <a class="el" href="classbdm_1_1mprod.html#abfa7478f8df1de6d8cd4c349db512831">bdm::mprod</a>, <a class="el" href="classbdm_1_1mlnorm.html#a52980f13d80162d00b30d5864343f564">bdm::mlnorm&lt; sq_T, TEpdf &gt;</a>, <a class="el" href="classbdm_1_1mgnorm.html#ad717dacc6a9eb967f8410994dc6dc6f9">bdm::mgnorm&lt; sq_T &gt;</a>, <a class="el" href="classbdm_1_1mgamma.html#ada2af0f327e5452bee71d1bf97452ae4">bdm::mgamma</a>, <a class="el" href="classbdm_1_1migamma__ref.html#a9e7e0f7d2aa9ecca8ec1af8cbcb5ef1d">bdm::migamma_ref</a>, <a class="el" href="classbdm_1_1mlognorm.html#a49e45ea13a869da607ef9be7a229128a">bdm::mlognorm</a>, <a class="el" href="classbdm_1_1mlnorm.html#a52980f13d80162d00b30d5864343f564">bdm::mlnorm&lt; ldmat, enorm &gt;</a>, and <a class="el" href="classbdm_1_1mlnorm.html#a52980f13d80162d00b30d5864343f564">bdm::mlnorm&lt; chmat &gt;</a>.</p>
187
188</div>
189</div>
190<a class="anchor" id="ac97f01cd62bf63e67ddd5b1b8a56cf59"></a><!-- doxytag: member="bdm::mmix::samplecond" ref="ac97f01cd62bf63e67ddd5b1b8a56cf59" args="(const vec &amp;cond)" -->
191<div class="memitem">
192<div class="memproto">
193      <table class="memname">
194        <tr>
195          <td class="memname">vec bdm::mmix::samplecond </td>
196          <td>(</td>
197          <td class="paramtype">const vec &amp;&nbsp;</td>
198          <td class="paramname"> <em>cond</em></td>
199          <td>&nbsp;)&nbsp;</td>
200          <td><code> [virtual]</code></td>
201        </tr>
202      </table>
203</div>
204<div class="memdoc">
205
206<p>Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_16.png"/>. </p>
207<dl><dt><b>Parameters:</b></dt><dd>
208  <table border="0" cellspacing="2" cellpadding="0">
209    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
210  </table>
211  </dd>
212</dl>
213
214<p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#af0c1db6fcbb3aae2dd6123884457a367">bdm::mpdf</a>.</p>
215
216<p>References <a class="el" href="emix_8h_source.html#l00467">Coms</a>, and <a class="el" href="emix_8h_source.html#l00469">w</a>.</p>
217
218</div>
219</div>
220<a class="anchor" id="a6e497d501331057309d2fddf63259d1a"></a><!-- doxytag: member="bdm::mmix::samplecond_m" ref="a6e497d501331057309d2fddf63259d1a" args="(const vec &amp;cond, int N)" -->
221<div class="memitem">
222<div class="memproto">
223      <table class="memname">
224        <tr>
225          <td class="memname">mat bdm::mpdf::samplecond_m </td>
226          <td>(</td>
227          <td class="paramtype">const vec &amp;&nbsp;</td>
228          <td class="paramname"> <em>cond</em>, </td>
229        </tr>
230        <tr>
231          <td class="paramkey"></td>
232          <td></td>
233          <td class="paramtype">int&nbsp;</td>
234          <td class="paramname"> <em>N</em></td><td>&nbsp;</td>
235        </tr>
236        <tr>
237          <td></td>
238          <td>)</td>
239          <td></td><td></td><td><code> [virtual, inherited]</code></td>
240        </tr>
241      </table>
242</div>
243<div class="memdoc">
244
245<p>Returns. </p>
246<dl><dt><b>Parameters:</b></dt><dd>
247  <table border="0" cellspacing="2" cellpadding="0">
248    <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_16.png"/>. </td></tr>
249    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
250  </table>
251  </dd>
252</dl>
253
254<p>Reimplemented in <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; EPDF &gt;</a>, <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; enorm&lt; sq_T &gt; &gt;</a>, <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; elognorm &gt;</a>, <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; TEpdf&lt; sq_T &gt; &gt;</a>, <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; egamma &gt;</a>, <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; enorm&lt; ldmat &gt; &gt;</a>, <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; eiWishartCh &gt;</a>, <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; eigamma &gt;</a>, and <a class="el" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">bdm::mpdf_internal&lt; enorm&lt; chmat &gt; &gt;</a>.</p>
255
256<p>References <a class="el" href="bdmbase_8h_source.html#l00491">bdm::mpdf::samplecond()</a>.</p>
257
258</div>
259</div>
260<a class="anchor" id="a77f4e69ba18e685bdd1cb92e256a2ea2"></a><!-- doxytag: member="bdm::mmix::set_parameters" ref="a77f4e69ba18e685bdd1cb92e256a2ea2" args="(const vec &amp;w0, const Array&lt; shared_ptr&lt; mpdf &gt; &gt; &amp;Coms0)" -->
261<div class="memitem">
262<div class="memproto">
263      <table class="memname">
264        <tr>
265          <td class="memname">void bdm::mmix::set_parameters </td>
266          <td>(</td>
267          <td class="paramtype">const vec &amp;&nbsp;</td>
268          <td class="paramname"> <em>w0</em>, </td>
269        </tr>
270        <tr>
271          <td class="paramkey"></td>
272          <td></td>
273          <td class="paramtype">const Array&lt; <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> &gt; &gt; &amp;&nbsp;</td>
274          <td class="paramname"> <em>Coms0</em></td><td>&nbsp;</td>
275        </tr>
276        <tr>
277          <td></td>
278          <td>)</td>
279          <td></td><td></td><td><code> [inline]</code></td>
280        </tr>
281      </table>
282</div>
283<div class="memdoc">
284
285<p>Set weights <code>w</code> and components <code>R</code>. </p>
286
287<p><dl class="todo"><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>check if all components are OK </dd></dl>
288</p>
289
290<p>References <a class="el" href="bdmbase_8h_source.html#l00154">bdm::RV::_dsize()</a>, <a class="el" href="emix_8h_source.html#l00467">Coms</a>, <a class="el" href="bdmbase_8h_source.html#l00461">bdm::mpdf::dimc</a>, <a class="el" href="emix_8h_source.html#l00471">dummy_epdf</a>, <a class="el" href="bdmbase_8h_source.html#l00463">bdm::mpdf::rvc</a>, and <a class="el" href="emix_8h_source.html#l00469">w</a>.</p>
291
292</div>
293</div>
294<hr/>The documentation for this class was generated from the following files:<ul>
295<li><a class="el" href="emix_8h_source.html">emix.h</a></li>
296<li>emix.cpp</li>
297</ul>
298</div>
299<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 13 23:08:56 2009 for mixpp by&nbsp;
300<a href="http://www.doxygen.org/index.html">
301<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
302</body>
303</html>
Note: See TracBrowser for help on using the browser.