root/library/doc/html/arx_ui.html @ 652

Revision 651, 4.6 kB (checked in by mido, 15 years ago)

\doc directory cleaned a bit

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: Running experiment \c estimator with ARX data fields</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 class="current"><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li><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="navpath"><a class="el" href="dev_guide.html">BDM Use - in C++</a>
59  </div>
60</div>
61<div class="contents">
62<h1><a class="anchor" name="arx_ui">Running experiment <code>estimator</code> with ARX data fields </a></h1>The experiment estimator::cpp can be run either on command line, or as a mex file in Matlab.<h2><a class="anchor" name="cmd">
63Command Line</a></h2>
64In order to use it for estimation of an ARX model, we can define the following <a class="el" href="ui_page.html">user info</a> structure: <div class="fragment"><pre class="fragment"></pre></div><p>
65The structure is interpreted by application <code>estimator</code>, which looks for fields: <dl>
66<dt>system</dt>
67<dd>description of a Data Source generating Data. The structure must by UI with <code>type="DS_offspring"</code>. In our example, it is of type "ArxDS" which is parsed by bdm::UIArxDS UIbuilder generating a Data Source simulating ARX process. </dd>
68<dt>estimator </dt>
69<dd>description of a Baysian model used to estimate parameters of the data model. In this case, it is of type "ARXest" which is parsed by bdm::UIARX UIbuilder generating Bayesian estimator of autoregressive processess. </dd>
70<dt>logger</dt>
71<dd>description of a way how to store results. UI is of <code>type="logger_offspring"</code>. In this case, it is of class "dirfilelog" which is parsed by bdm::UIdirfilelog which generates object storing data in directory specified by dirname="" field in fileformat understood by program kst. </dd>
72</dl>
73When the application estimator is run with the above code, it produces a directory of data files, which can be displayed by program kst. Expected results are: <div align="center">
74<img src="arx_ui_kst.png" alt="arx_ui_kst.png">
75</div>
76 <h2><a class="anchor" name="mex">
77Matlab mex file</a></h2>
78The matlab mex file can be run with exactly the same configuration as above. However, when we wish to see the results in Matlab, we may wish to change the logger object to <code>type="mexlog"</code> which will store the results in a matlab structure.<p>
79The exact configuration file may look as follows: <div class="fragment"><pre class="fragment"></pre></div><p>
80The resulting structure can be displayed using matlab script arx_test_disp.m, typically producing the following results: <div align="center">
81<img src="arx_ui_mex.png" alt="arx_ui_mex.png">
82</div>
83  </div>
84<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 17:34:44 2009 for mixpp by&nbsp;
85<a href="http://www.doxygen.org/index.html">
86<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
87</body>
88</html>
Note: See TracBrowser for help on using the browser.