root/doc/html/libEF__ui_8h-source.html @ 368

Revision 368, 10.5 kB (checked in by smidl, 15 years ago)

doc

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: libEF_ui.h Source File</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.8 -->
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><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li><a href="modules.html"><span>Modules</span></a></li>
55      <li><a href="annotated.html"><span>Classes</span></a></li>
56      <li class="current"><a href="files.html"><span>Files</span></a></li>
57    </ul>
58  </div>
59  <div class="tabs">
60    <ul>
61      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
62      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
63    </ul>
64  </div>
65<h1>libEF_ui.h</h1><a href="libEF__ui_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
66<a name="l00013"></a>00013 <span class="preprocessor">#ifndef DS_UI_H</span>
67<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define DS_UI_H</span>
68<a name="l00015"></a>00015 <span class="preprocessor"></span>
69<a name="l00016"></a>00016
70<a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="libDS_8h.html" title="Common DataSources.">libDS.h</a>"</span>
71<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>
72<a name="l00019"></a>00019
73<a name="l00046"></a><a class="code" href="classUImgnorm.html">00046</a> <span class="keyword">class </span><a class="code" href="classUImgnorm.html">UImgnorm</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1UIbuilder.html" title="Builds computational object from a UserInfo structure.">UIbuilder</a> {
74<a name="l00047"></a>00047 <span class="keyword">public</span>:
75<a name="l00048"></a>00048         <a class="code" href="classUImgnorm.html">UImgnorm</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">"mgnorm"</span> ) {};
76<a name="l00049"></a><a class="code" href="classUImgnorm.html#0d34afe3baae817983b25dbd0416b13b">00049</a>         <a class="code" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects.">bdmroot</a>* <a class="code" href="classUImgnorm.html#0d34afe3baae817983b25dbd0416b13b" title="Function building the computational object.">build</a> ( Setting &amp;S )<span class="keyword"> const </span>{
77<a name="l00050"></a>00050                 <a class="code" href="classbdm_1_1mgnorm.html" title="Mpdf with general function for mean value.">mgnorm&lt;chmat&gt;</a>* mgn;
78<a name="l00051"></a>00051                 <a class="code" href="classbdm_1_1fnc.html" title="Class representing function  of variable  represented by rv.">fnc</a>* g; UIbuild ( S[<span class="stringliteral">"g"</span>],g );
79<a name="l00052"></a>00052
80<a name="l00053"></a>00053                 mat R;
81<a name="l00054"></a>00054                 <span class="keywordflow">if</span> ( S.exists ( <span class="stringliteral">"dR"</span> ) ) {R=diag ( getvec ( S[<span class="stringliteral">"dR"</span>] ) );}
82<a name="l00055"></a>00055                 <span class="keywordflow">else</span> {
83<a name="l00056"></a>00056                         <span class="keywordflow">if</span> ( S.exists ( <span class="stringliteral">"R"</span> ) ) {R=getmat ( S[<span class="stringliteral">"R"</span>],g-&gt;<a class="code" href="classbdm_1_1fnc.html#083832294da9d1e40804158b979c4341" title="access function">dimension</a>() );}
84<a name="l00057"></a>00057                 }
85<a name="l00058"></a>00058                 
86<a name="l00059"></a>00059                 mgn-&gt;<a class="code" href="classbdm_1_1mgnorm.html#578e02458e2a0d17f3864826b6ebd564" title="set mean function">set_parameters</a>(g,R);
87<a name="l00060"></a>00060                 <span class="keywordflow">return</span> mgn;
88<a name="l00061"></a>00061         };
89<a name="l00062"></a>00062 };
90<a name="l00063"></a>00063
91<a name="l00064"></a>00064 UIREGISTER ( <a class="code" href="classUImgnorm.html">UImgnorm</a>);
92<a name="l00065"></a>00065
93<a name="l00086"></a><a class="code" href="classUImigamma__ref.html">00086</a> <span class="keyword">class </span><a class="code" href="classUImigamma__ref.html">UImigamma_ref</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1UIbuilder.html" title="Builds computational object from a UserInfo structure.">UIbuilder</a> {
94<a name="l00087"></a>00087         <span class="keyword">public</span>:
95<a name="l00088"></a>00088                 <a class="code" href="classUImigamma__ref.html">UImigamma_ref</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">"migamma_ref"</span> ) {};
96<a name="l00089"></a><a class="code" href="classUImigamma__ref.html#421fa84dcb5f21604268703f5f08770c">00089</a>                 <a class="code" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects.">bdmroot</a>* <a class="code" href="classUImigamma__ref.html#421fa84dcb5f21604268703f5f08770c" title="Function building the computational object.">build</a> ( Setting &amp;S )<span class="keyword"> const </span>{
97<a name="l00090"></a>00090                         <a class="code" href="classbdm_1_1migamma__ref.html" title="Inverse-Gamma random walk around a fixed point.">migamma_ref</a>* mig=<span class="keyword">new</span> <a class="code" href="classbdm_1_1migamma__ref.html" title="Inverse-Gamma random walk around a fixed point.">migamma_ref</a>;
98<a name="l00091"></a>00091
99<a name="l00092"></a>00092                         mig-&gt;<a class="code" href="classbdm_1_1migamma__ref.html#b0b4eb278ef5d0831ec4954ba7bd2800" title="Set value of k.">set_parameters</a>(S[<span class="stringliteral">"k"</span>],getvec(S[<span class="stringliteral">"ref"</span>]),S[<span class="stringliteral">"l"</span>]);
100<a name="l00093"></a>00093                         <span class="keywordflow">return</span> mig;
101<a name="l00094"></a>00094                 };
102<a name="l00095"></a>00095 };
103<a name="l00096"></a>00096 UIREGISTER ( <a class="code" href="classUImigamma__ref.html">UImigamma_ref</a> );
104<a name="l00097"></a>00097
105<a name="l00098"></a>00098
106<a name="l00117"></a><a class="code" href="classUImlognorm.html">00117</a> <span class="keyword">class </span><a class="code" href="classUImlognorm.html">UImlognorm</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1UIbuilder.html" title="Builds computational object from a UserInfo structure.">UIbuilder</a> {
107<a name="l00118"></a>00118         <span class="keyword">public</span>:
108<a name="l00119"></a>00119                 <a class="code" href="classUImlognorm.html">UImlognorm</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">"mlognorm"</span> ) {};
109<a name="l00120"></a><a class="code" href="classUImlognorm.html#a604c796bd0546b8e958d67bd2b640ce">00120</a>                 <a class="code" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects.">bdmroot</a>* <a class="code" href="classUImlognorm.html#a604c796bd0546b8e958d67bd2b640ce" title="Function building the computational object.">build</a> ( Setting &amp;S )<span class="keyword"> const </span>{
110<a name="l00121"></a>00121                         <a class="code" href="classbdm_1_1mlognorm.html" title="Log-Normal random walk.">mlognorm</a>* mln=<span class="keyword">new</span> <a class="code" href="classbdm_1_1mlognorm.html" title="Log-Normal random walk.">mlognorm</a>;
111<a name="l00122"></a>00122
112<a name="l00123"></a>00123                         vec mu0=getvec(S[<span class="stringliteral">"mu0"</span>]);
113<a name="l00124"></a>00124                         mln-&gt;<a class="code" href="classbdm_1_1mlognorm.html#604cab0e8a76f9041dc3c606043bb39f" title="Set value of k.">set_parameters</a>(mu0.length(),S[<span class="stringliteral">"k"</span>]);
114<a name="l00125"></a>00125                         mln-&gt;<a class="code" href="classbdm_1_1mlognorm.html#9106d8fd8bdf2b6be675ffd8f3ca584e" title="Update ep so that it represents this mpdf conditioned on rvc = cond.">condition</a>(mu0);
115<a name="l00126"></a>00126                         <span class="keywordflow">return</span> mln;
116<a name="l00127"></a>00127                 };
117<a name="l00128"></a>00128 };
118<a name="l00129"></a>00129 UIREGISTER ( <a class="code" href="classUImlognorm.html">UImlognorm</a> );
119<a name="l00130"></a>00130
120<a name="l00131"></a>00131 <span class="preprocessor">#endif // DS_UI_H</span>
121</pre></div></div>
122<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 8 18:02:33 2009 for mixpp by&nbsp;
123<a href="http://www.doxygen.org/index.html">
124<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
125</body>
126</html>
Note: See TracBrowser for help on using the browser.