Index: doc/html/arx__ui_8h-source.html
===================================================================
--- doc/html/arx__ui_8h-source.html (revision 270)
+++ doc/html/arx__ui_8h-source.html (revision 271)
@@ -6,11 +6,51 @@
 </head><body>
 <!-- Generated by Doxygen 1.5.6 -->
+<script type="text/javascript">
+<!--
+function changeDisplayState (e){
+  var num=this.id.replace(/[^[0-9]/g,'');
+  var button=this.firstChild;
+  var sectionDiv=document.getElementById('dynsection'+num);
+  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
+    sectionDiv.style.display='block';
+    button.src='open.gif';
+  }else{
+    sectionDiv.style.display='none';
+    button.src='closed.gif';
+  }
+}
+function initDynSections(){
+  var divs=document.getElementsByTagName('div');
+  var sectionCounter=1;
+  for(var i=0;i<divs.length-1;i++){
+    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
+      var header=divs[i];
+      var section=divs[i+1];
+      var button=header.firstChild;
+      if (button!='IMG'){
+        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
+        button=document.createElement('img');
+        divs[i].insertBefore(button,divs[i].firstChild);
+      }
+      header.style.cursor='pointer';
+      header.onclick=changeDisplayState;
+      header.id='dynheader'+sectionCounter;
+      button.src='closed.gif';
+      section.id='dynsection'+sectionCounter;
+      section.style.display='none';
+      section.style.marginLeft='14px';
+      sectionCounter++;
+    }
+  }
+}
+window.onload = initDynSections;
+-->
+</script>
 <div class="navigation" id="top">
   <div class="tabs">
     <ul>
-      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
+      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
       <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
       <li><a href="modules.html"><span>Modules</span></a></li>
-      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
       <li><a href="classes.html"><span>Classes</span></a></li>
       <li class="current"><a href="files.html"><span>Files</span></a></li>
@@ -18,65 +58,59 @@
   </div>
 <h1>arx_ui.h</h1><a href="arx__ui_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
-<a name="l00013"></a>00013 <span class="preprocessor">#ifndef ARX_UI_H</span>
-<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define ARX_UI_H</span>
-<a name="l00015"></a>00015 <span class="preprocessor"></span>
-<a name="l00016"></a>00016 
-<a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="arx_8h.html" title="Bayesian Filtering for generalized autoregressive (ARX) model.">arx.h</a>"</span>
-<a name="l00018"></a>00018 <span class="preprocessor">#include "<a class="code" href="loggers__ui_8h.html" title="UI builders for Loggers.">stat/loggers_ui.h</a>"</span>
-<a name="l00019"></a>00019 
-<a name="l00038"></a><a class="code" href="classUIARX.html">00038</a> <span class="keyword">class </span><a class="code" href="classUIARX.html">UIARX</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1UIbuilder.html" title="Builds computational object from a UserInfo structure.">UIbuilder</a> {
-<a name="l00039"></a>00039 <span class="keyword">public</span>:
-<a name="l00040"></a>00040         <a class="code" href="classUIARX.html">UIARX</a>() :<a class="code" href="classbdm_1_1UIbuilder.html#c75103dd58395644e80f1eea886c656b" title="Constructor needs to be run only once macro UIREGISTER.">UIbuilder</a> ( <span class="stringliteral">"ARXest"</span> ) {};
-<a name="l00041"></a><a class="code" href="classUIARX.html#e9ef8d41d8f10a31343d76a73b9f0f77">00041</a>         <a class="code" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects.">bdmroot</a>* <a class="code" href="classUIARX.html#e9ef8d41d8f10a31343d76a73b9f0f77" title="Function building the computational object.">build</a> ( Setting &amp;S )<span class="keyword"> const </span>{
-<a name="l00042"></a>00042                 <span class="keywordtype">int</span> ylen = S[<span class="stringliteral">"ychns"</span>].getLength();
-<a name="l00043"></a>00043                 <span class="keywordtype">int</span> rgrlen = S[<span class="stringliteral">"rgrid"</span>].getLength();
-<a name="l00044"></a>00044                 <span class="comment">// create rvs</span>
-<a name="l00045"></a>00045                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> yrv;
-<a name="l00046"></a>00046                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rrv;
-<a name="l00047"></a>00047                 <span class="keywordtype">int</span> i;
-<a name="l00048"></a>00048                 <span class="keywordflow">for</span> ( i=0;i&lt;ylen; i++ ) {yrv.<a class="code" href="classbdm_1_1RV.html#87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">"y"</span>+num2str(i),i+1 ));}
-<a name="l00049"></a>00049                 <span class="comment">//build regressor</span>
-<a name="l00050"></a>00050                 Setting&amp; ids=S[<span class="stringliteral">"rgrid"</span>];
-<a name="l00051"></a>00051                 Setting&amp; del=S[<span class="stringliteral">"delays"</span>];
-<a name="l00052"></a>00052 
-<a name="l00053"></a>00053                 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i&lt;ids.getLength(); i++ ) {
-<a name="l00054"></a>00054                         rrv.<a class="code" href="classbdm_1_1RV.html#87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> (<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>(<span class="stringliteral">"rgr"</span>,ids[i],1,del[i]));
-<a name="l00055"></a>00055                 }
-<a name="l00056"></a>00056 
-<a name="l00057"></a>00057                 <span class="comment">//init</span>
-<a name="l00058"></a>00058                 mat V0;
-<a name="l00059"></a>00059                 <span class="keywordflow">if</span> ( S.exists ( <span class="stringliteral">"dV0"</span> ) ) {
-<a name="l00060"></a>00060                         V0=diag ( getvec(S[<span class="stringliteral">"dV0"</span>]) );
+<a name="l00014"></a>00014 <span class="preprocessor">#ifndef ARX_UI_H</span>
+<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define ARX_UI_H</span>
+<a name="l00016"></a>00016 <span class="preprocessor"></span>
+<a name="l00017"></a>00017 
+<a name="l00018"></a>00018 <span class="preprocessor">#include "<a class="code" href="arx_8h.html" title="Bayesian Filtering for generalized autoregressive (ARX) model.">arx.h</a>"</span>
+<a name="l00019"></a>00019 <span class="preprocessor">#include "<a class="code" href="loggers__ui_8h.html" title="UI builders for Loggers.">stat/loggers_ui.h</a>"</span>
+<a name="l00020"></a>00020 
+<a name="l00041"></a><a class="code" href="classUIARX.html">00041</a> <span class="keyword">class </span><a class="code" href="classUIARX.html">UIARX</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1UIbuilder.html" title="Builds computational object from a UserInfo structure.">UIbuilder</a> {
+<a name="l00042"></a>00042 <span class="keyword">public</span>:
+<a name="l00043"></a>00043         <a class="code" href="classUIARX.html">UIARX</a>() :<a class="code" href="classbdm_1_1UIbuilder.html#c75103dd58395644e80f1eea886c656b" title="Constructor needs to be run only once macro UIREGISTER.">UIbuilder</a> ( <span class="stringliteral">"ARXest"</span> ) {};
+<a name="l00044"></a><a class="code" href="classUIARX.html#e9ef8d41d8f10a31343d76a73b9f0f77">00044</a>         <a class="code" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects.">bdmroot</a>* <a class="code" href="classUIARX.html#e9ef8d41d8f10a31343d76a73b9f0f77" title="Function building the computational object.">build</a> ( Setting &amp;S )<span class="keyword"> const </span>{
+<a name="l00045"></a>00045                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> *yrv;  UIbuild(S[<span class="stringliteral">"y"</span>],yrv);
+<a name="l00046"></a>00046                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> *rrv; UIbuild(S[<span class="stringliteral">"rgr"</span>],rrv);
+<a name="l00047"></a>00047                 <span class="keywordtype">int</span> ylen = yrv-&gt;<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089">_dsize</a>();
+<a name="l00048"></a>00048                 <span class="keywordtype">int</span> rgrlen = rrv-&gt;<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089">_dsize</a>();
+<a name="l00049"></a>00049                 
+<a name="l00050"></a>00050                 <span class="comment">//init</span>
+<a name="l00051"></a>00051                 mat V0;
+<a name="l00052"></a>00052                 <span class="keywordflow">if</span> ( S.exists ( <span class="stringliteral">"dV0"</span> ) ) {
+<a name="l00053"></a>00053                         V0=diag ( getvec(S[<span class="stringliteral">"dV0"</span>]) );
+<a name="l00054"></a>00054                 }
+<a name="l00055"></a>00055                 <span class="keywordflow">else</span> {
+<a name="l00056"></a>00056                         V0=concat ( 1e-3*ones ( ylen ), 1e-5*ones ( rgrlen ) );
+<a name="l00057"></a>00057                 }
+<a name="l00058"></a>00058                 <span class="keywordtype">double</span> nu0;
+<a name="l00059"></a>00059                 <span class="keywordflow">if</span> ( S.exists ( <span class="stringliteral">"nu0"</span> ) ) {
+<a name="l00060"></a>00060                         nu0=double(S[<span class="stringliteral">"nu0"</span>]);
 <a name="l00061"></a>00061                 }
 <a name="l00062"></a>00062                 <span class="keywordflow">else</span> {
-<a name="l00063"></a>00063                         V0=<a class="code" href="namespacebdm.html#b9016687c0e874ca5cdcf75ae28811aa" title="Concat two random variables.">concat</a> ( 1e-3*ones ( ylen ), 1e-5*ones ( rgrlen ) );
+<a name="l00063"></a>00063                         nu0 = rgrlen+ylen+2;
 <a name="l00064"></a>00064                 }
-<a name="l00065"></a>00065                 <span class="keywordtype">double</span> nu0;
-<a name="l00066"></a>00066                 <span class="keywordflow">if</span> ( S.exists ( <span class="stringliteral">"nu0"</span> ) ) {
-<a name="l00067"></a>00067                         nu0=double(S[<span class="stringliteral">"nu0"</span>]);
+<a name="l00065"></a>00065                 <span class="keywordtype">double</span> frg;
+<a name="l00066"></a>00066                 <span class="keywordflow">if</span> ( S.exists ( <span class="stringliteral">"frg"</span> ) ) {
+<a name="l00067"></a>00067                         frg = S[<span class="stringliteral">"frg"</span>];
 <a name="l00068"></a>00068                 }
 <a name="l00069"></a>00069                 <span class="keywordflow">else</span> {
-<a name="l00070"></a>00070                         nu0 = rgrlen+ylen+2;
+<a name="l00070"></a>00070                         frg = 1.0;
 <a name="l00071"></a>00071                 }
-<a name="l00072"></a>00072                 <span class="keywordtype">double</span> frg;
-<a name="l00073"></a>00073                 <span class="keywordflow">if</span> ( S.exists ( <span class="stringliteral">"frg"</span> ) ) {
-<a name="l00074"></a>00074                         frg = S[<span class="stringliteral">"frg"</span>];
-<a name="l00075"></a>00075                 }
-<a name="l00076"></a>00076                 <span class="keywordflow">else</span> {
-<a name="l00077"></a>00077                         frg = 1.0;
-<a name="l00078"></a>00078                 }
-<a name="l00079"></a>00079                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> thr(<span class="stringliteral">"{theta r }"</span>, vec_2(rgrlen*ylen, ylen*ylen));
-<a name="l00080"></a>00080                 <a class="code" href="classbdm_1_1ARX.html" title="Linear Autoregressive model with Gaussian noise.">ARX</a>* A=<span class="keyword">new</span> <a class="code" href="classbdm_1_1ARX.html" title="Linear Autoregressive model with Gaussian noise.">ARX</a> (thr, V0, nu0, frg);
-<a name="l00081"></a>00081                 A-&gt;<a class="code" href="classbdm_1_1BM.html#f135ae6dce7e9f30c9f88229c7930b96">set_drv</a>(<a class="code" href="namespacebdm.html#b9016687c0e874ca5cdcf75ae28811aa" title="Concat two random variables.">concat</a>(yrv,rrv));
-<a name="l00082"></a>00082                 
-<a name="l00083"></a>00083                 <span class="keywordflow">return</span> A;
-<a name="l00084"></a>00084         };
-<a name="l00085"></a>00085 };
-<a name="l00086"></a>00086 
-<a name="l00087"></a>00087 UIREGISTER ( <a class="code" href="classUIARX.html">UIARX</a> );
-<a name="l00088"></a>00088 
-<a name="l00089"></a>00089 <span class="preprocessor">#endif // DS_UI_H</span>
+<a name="l00072"></a>00072                 <a class="code" href="classbdm_1_1ARX.html" title="Linear Autoregressive model with Gaussian noise.">ARX</a>* A=<span class="keyword">new</span> <a class="code" href="classbdm_1_1ARX.html" title="Linear Autoregressive model with Gaussian noise.">ARX</a>;
+<a name="l00073"></a>00073                 A-&gt;<a class="code" href="classbdm_1_1ARX.html#7aef6fe827f15427d534e6fb2c220e04">set_parameters</a>(frg);
+<a name="l00074"></a>00074                 A-&gt;<a class="code" href="classbdm_1_1ARX.html#f859f53eab269845a9064bbd92f841af">set_statistics</a>(ylen,V0, nu0);
+<a name="l00075"></a>00075                 A-&gt;<a class="code" href="classbdm_1_1ARX.html#df3dc1b90efc0cc54a3a6e5e858542d1">set_drv</a>(concat(*yrv,*rrv));
+<a name="l00076"></a>00076                 
+<a name="l00077"></a>00077                 <span class="comment">//name results (for logging)</span>
+<a name="l00078"></a>00078                 A-&gt;<a class="code" href="classbdm_1_1BM.html#b38d92f17620813ad872d86e01a26e5e">set_rv</a>(<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>(<span class="stringliteral">"{theta r }"</span>, vec_2(ylen*rgrlen, ylen*ylen)));
+<a name="l00079"></a>00079                 <span class="keyword">delete</span> yrv; <span class="keyword">delete</span> rrv;
+<a name="l00080"></a>00080                 <span class="keywordflow">return</span> A;
+<a name="l00081"></a>00081         };
+<a name="l00082"></a>00082 };
+<a name="l00083"></a>00083 
+<a name="l00084"></a>00084 UIREGISTER ( <a class="code" href="classUIARX.html">UIARX</a> );
+<a name="l00085"></a>00085 
+<a name="l00086"></a>00086 <span class="preprocessor">#endif // DS_UI_H</span>
 </pre></div></div>
-<hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 23:33:54 2009 for mixpp by&nbsp;
+<hr size="1"><address style="text-align: right;"><small>Generated on Sun Feb 15 23:09:22 2009 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>
