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

Revision 614, 4.9 kB (checked in by smidl, 15 years ago)

doc

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: Running experiment \c estimator with ARX data fields \todo this page is out of date, as the user info concept has been changed</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 class="current"><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
57      <li><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="navpath"><a class="el" href="dev_guide.html">Howto Use BDM in C++ for your needs</a>
62  </div>
63</div>
64<div class="contents">
65
66
67<h1><a class="anchor" id="arx_ui">Running experiment <code>estimator</code> with ARX data fields  this page is out of date, as the user info concept has been changed </a></h1><p>The experiment estimator::cpp can be run either on command line, or as a mex file in Matlab.</p>
68<h2><a class="anchor" id="cmd">
69Command Line</a></h2>
70<p>In order to use it for estimation of an ARX model, we can define the following <a class="el" href="ui_page.html">User Infos and their use</a> structure: </p>
71<div class="fragment"><pre class="fragment"></pre></div><p>The structure is interpreted by application <code>estimator</code>, which looks for fields: </p>
72<dl>
73<dt>system</dt>
74<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>
75<dt>estimator </dt>
76<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>
77<dt>logger</dt>
78<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>
79</dl>
80<p>When 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: </p>
81<div align="center">
82<img src="arx_ui_kst.png" alt="arx_ui_kst.png"/>
83</div>
84 <h2><a class="anchor" id="mex">
85Matlab mex file</a></h2>
86<p>The 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>
87<p>The exact configuration file may look as follows: </p>
88<div class="fragment"><pre class="fragment"></pre></div><p>The resulting structure can be displayed using matlab script arx_test_disp.m, typically producing the following results: </p>
89<div align="center">
90<img src="arx_ui_mex.png" alt="arx_ui_mex.png"/>
91</div>
92  </div>
93<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 13 22:40:40 2009 for mixpp by&nbsp;
94<a href="http://www.doxygen.org/index.html">
95<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
96</body>
97</html>
Note: See TracBrowser for help on using the browser.