Index: doc/html/classmlnorm.html
===================================================================
--- doc/html/classmlnorm.html (revision 181)
+++ doc/html/classmlnorm.html (revision 210)
@@ -34,5 +34,5 @@
 <p><center><img src="classmlnorm__inherit__graph.png" border="0" usemap="#mlnorm_3_01sq__T_01_4__inherit__map" alt="Inheritance graph"></center>
 <map name="mlnorm_3_01sq__T_01_4__inherit__map">
-<area shape="rect" href="classmEF.html" title="Exponential family model." alt="" coords="40,82,88,106"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="39,7,89,31"></map>
+<area shape="rect" href="classmlnorm.html" title="mlnorm\&lt; ldmat \&gt;" alt="" coords="5,263,144,289"><area shape="rect" href="classmEF.html" title="Exponential family model." alt="" coords="51,87,99,113"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="48,7,101,33"><area shape="rect" href="classmlstudent.html" title="mlstudent" alt="" coords="32,343,117,369"></map>
 <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
 <div class="dynheader">
@@ -56,26 +56,39 @@
 
 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr>
-<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1bd939dbf8ec7b8066d3f18abba6822b"></a><!-- doxytag: member="mlnorm::samplecond" ref="1bd939dbf8ec7b8066d3f18abba6822b" args="(const vec &amp;cond, double &amp;lik)" -->
-vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#1bd939dbf8ec7b8066d3f18abba6822b">samplecond</a> (const vec &amp;cond, double &amp;lik)</td></tr>
-
-<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generate one sample of the posterior. <br></td></tr>
-<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="06a3600a414b4b0f006ce9440f462817"></a><!-- doxytag: member="mlnorm::samplecond" ref="06a3600a414b4b0f006ce9440f462817" args="(const vec &amp;cond, vec &amp;lik, int n)" -->
-mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#06a3600a414b4b0f006ce9440f462817">samplecond</a> (const vec &amp;cond, vec &amp;lik, int n)</td></tr>
-
-<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generate matrix of samples of the posterior. <br></td></tr>
 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d41126455ac64b888a38f677886e1b40"></a><!-- doxytag: member="mlnorm::condition" ref="d41126455ac64b888a38f677886e1b40" args="(const vec &amp;cond)" -->
 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#d41126455ac64b888a38f677886e1b40">condition</a> (const vec &amp;cond)</td></tr>
 
 <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="classepdf.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>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2732ae47835dd25d5784bf08fde0a546"></a><!-- doxytag: member="mlnorm::_mu_const" ref="2732ae47835dd25d5784bf08fde0a546" args="()" -->
+vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#2732ae47835dd25d5784bf08fde0a546">_mu_const</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="65ec3840c21b21102896bfd2282b47b3"></a><!-- doxytag: member="mlnorm::_A" ref="65ec3840c21b21102896bfd2282b47b3" args="()" -->
+mat &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#65ec3840c21b21102896bfd2282b47b3">_A</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ff2b03fbb5e1133a5fe1bf831939f63"></a><!-- doxytag: member="mlnorm::_R" ref="3ff2b03fbb5e1133a5fe1bf831939f63" args="()" -->
+mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#3ff2b03fbb5e1133a5fe1bf831939f63">_R</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#3f172b79ec4a5ebc87898a5381141f1b">samplecond</a> (const vec &amp;cond, double &amp;ll)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.  <a href="#3f172b79ec4a5ebc87898a5381141f1b"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0e37163660f93df2a4d723cedb1da89c">samplecond</a> (const vec &amp;cond, vec &amp;ll, int N)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns.  <a href="#0e37163660f93df2a4d723cedb1da89c"></a><br></td></tr>
 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80b738ece5bd4f8c4edaee4b38906f91"></a><!-- doxytag: member="mlnorm::evalcond" ref="80b738ece5bd4f8c4edaee4b38906f91" args="(const vec &amp;dt, const vec &amp;cond)" -->
 virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#80b738ece5bd4f8c4edaee4b38906f91">evalcond</a> (const vec &amp;dt, const vec &amp;cond)</td></tr>
 
 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Shortcut for conditioning and evaluation of the internal <a class="el" href="classepdf.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>
-<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec9c850305984582548e8deb64f0ffe8"></a><!-- doxytag: member="mlnorm::_rvc" ref="ec9c850305984582548e8deb64f0ffe8" args="()" -->
-<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#ec9c850305984582548e8deb64f0ffe8">_rvc</a> ()</td></tr>
-
-<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
-<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e71ad4c66d5884c82d4a3b06b42fe32"></a><!-- doxytag: member="mlnorm::_rv" ref="1e71ad4c66d5884c82d4a3b06b42fe32" args="()" -->
-<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#1e71ad4c66d5884c82d4a3b06b42fe32">_rv</a> ()</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b7b2da35080cd15f1be365b805e7277e"></a><!-- doxytag: member="mlnorm::evalcond_m" ref="b7b2da35080cd15f1be365b805e7277e" args="(const mat &amp;Dt, const vec &amp;cond)" -->
+virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>evalcond_m</b> (const mat &amp;Dt, const vec &amp;cond)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15ef062183b1ccdf794732d5fa0b77cd"></a><!-- doxytag: member="mlnorm::_rvc" ref="15ef062183b1ccdf794732d5fa0b77cd" args="() const " -->
+<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#15ef062183b1ccdf794732d5fa0b77cd">_rvc</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71256ffb5fbd08f41d650e606a5bd585"></a><!-- doxytag: member="mlnorm::_rv" ref="71256ffb5fbd08f41d650e606a5bd585" args="() const " -->
+<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#71256ffb5fbd08f41d650e606a5bd585">_rv</a> () const </td></tr>
 
 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
@@ -85,4 +98,17 @@
 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
 <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b76ee2171ace4fb3ff95a131ae8fc421"></a><!-- doxytag: member="mlnorm::epdf" ref="b76ee2171ace4fb3ff95a131ae8fc421" args="" -->
+<a class="el" href="classenorm.html">enorm</a>&lt; sq_T &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#b76ee2171ace4fb3ff95a131ae8fc421">epdf</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> that arise by conditioning on <code>rvc</code>. <br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="90a62528ca1ce79b6396ff899119da0f"></a><!-- doxytag: member="mlnorm::A" ref="90a62528ca1ce79b6396ff899119da0f" args="" -->
+mat&nbsp;</td><td class="memItemRight" valign="bottom"><b>A</b></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ebab82017f10fbde483971bbf3b4004d"></a><!-- doxytag: member="mlnorm::mu_const" ref="ebab82017f10fbde483971bbf3b4004d" args="" -->
+vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>mu_const</b></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="17552bef9aeba92a42516fe7d39a5893"></a><!-- doxytag: member="mlnorm::_mu" ref="17552bef9aeba92a42516fe7d39a5893" args="" -->
+vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>_mu</b></td></tr>
+
 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="mlnorm::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" -->
 <a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#f6687c07ff07d47812dd565368ca59eb">rv</a></td></tr>
@@ -97,4 +123,9 @@
 
 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">pointer to internal <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> <br></td></tr>
+<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
+<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="1917009347bb410f73bf827df8767b09"></a><!-- doxytag: member="mlnorm::operator&lt;&lt;" ref="1917009347bb410f73bf827df8767b09" args="(std::ostream &amp;os, mlnorm&lt; sq_M &gt; &amp;ml)" -->
+template&lt;class sq_M&gt; </td></tr>
+<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">std::ostream &amp;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;os, <a class="el" href="classmlnorm.html">mlnorm</a>&lt; sq_M &gt; &amp;ml)</td></tr>
+
 </table>
 <hr><a name="_details"></a><h2>Detailed Description</h2>
@@ -104,8 +135,100 @@
 Normal distributed linear function with linear function of mean value;. 
 <p>
-Mean value <img class="formulaInl" alt="$mu=A*rvc+mu_0$" src="form_78.png">. <hr>The documentation for this class was generated from the following file:<ul>
+Mean value <img class="formulaInl" alt="$mu=A*rvc+mu_0$" src="form_78.png">. <hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="3f172b79ec4a5ebc87898a5381141f1b"></a><!-- doxytag: member="mlnorm::samplecond" ref="3f172b79ec4a5ebc87898a5381141f1b" args="(const vec &amp;cond, double &amp;ll)" -->
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">virtual vec mpdf::samplecond           </td>
+          <td>(</td>
+          <td class="paramtype">const vec &amp;&nbsp;</td>
+          <td class="paramname"> <em>cond</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">double &amp;&nbsp;</td>
+          <td class="paramname"> <em>ll</em></td><td>&nbsp;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td><td><code> [inline, virtual, inherited]</code></td>
+        </tr>
+      </table>
+</div>
+<div class="memdoc">
+
+<p>
+Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. 
+<p>
+Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. <dl compact><dt><b>Parameters:</b></dt><dd>
+  <table border="0" cellspacing="2" cellpadding="0">
+    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
+    <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>
+  </table>
+</dl>
+
+<p>Reimplemented in <a class="el" href="classmprod.html#a48887eb8738a9e5550bfc38eb8e9d68">mprod</a>.</p>
+
+<p>References <a class="el" href="libBM_8h-source.html#l00229">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00210">mpdf::ep</a>, <a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">epdf::evalpdflog()</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p>
+
+<p>Referenced by <a class="el" href="libPF_8h-source.html#l00138">MPF&lt; BM_T &gt;::bayes()</a>, and <a class="el" href="libPF_8cpp-source.html#l00007">PF::bayes()</a>.</p>
+
+</div>
+</div><p>
+<a class="anchor" name="0e37163660f93df2a4d723cedb1da89c"></a><!-- doxytag: member="mlnorm::samplecond" ref="0e37163660f93df2a4d723cedb1da89c" args="(const vec &amp;cond, vec &amp;ll, int N)" -->
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">virtual mat mpdf::samplecond           </td>
+          <td>(</td>
+          <td class="paramtype">const vec &amp;&nbsp;</td>
+          <td class="paramname"> <em>cond</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">vec &amp;&nbsp;</td>
+          <td class="paramname"> <em>ll</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">int&nbsp;</td>
+          <td class="paramname"> <em>N</em></td><td>&nbsp;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td><td><code> [inline, virtual, inherited]</code></td>
+        </tr>
+      </table>
+</div>
+<div class="memdoc">
+
+<p>
+Returns. 
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+  <table border="0" cellspacing="2" cellpadding="0">
+    <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>
+    <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr>
+    <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>
+  </table>
+</dl>
+
+<p>Reimplemented in <a class="el" href="classmprod.html#e171c40e210539c2af01d6237785620b">mprod</a>.</p>
+
+<p>References <a class="el" href="libBM_8h-source.html#l00229">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00073">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00210">mpdf::ep</a>, <a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">epdf::evalpdflog()</a>, <a class="el" href="libBM_8h-source.html#l00206">mpdf::rv</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p>
+
+</div>
+</div><p>
+<hr>The documentation for this class was generated from the following file:<ul>
 <li>work/git/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul>
 </div>
-<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 15 15:57:16 2008 for mixpp by&nbsp;
+<hr size="1"><address style="text-align: right;"><small>Generated on Wed Nov 12 19:18:56 2008 for mixpp by&nbsp;
 <a href="http://www.doxygen.org/index.html">
 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
