Changeset 280 for doc/html/pmsmDS_8h-source.html
- Timestamp:
- 02/24/09 14:12:46 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/pmsmDS_8h-source.html
r261 r280 6 6 </head><body> 7 7 <!-- Generated by Doxygen 1.5.6 --> 8 <script type="text/javascript"> 9 <!-- 10 function 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 } 22 function 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 } 46 window.onload = initDynSections; 47 --> 48 </script> 8 49 <div class="navigation" id="top"> 9 50 <div class="tabs"> 10 51 <ul> 11 <li><a href=" index.html"><span>Main Page</span></a></li>52 <li><a href="main.html"><span>Main Page</span></a></li> 12 53 <li><a href="pages.html"><span>Related Pages</span></a></li> 13 54 <li><a href="modules.html"><span>Modules</span></a></li> 14 <li><a href="namespaces.html"><span>Namespaces</span></a></li>15 55 <li><a href="classes.html"><span>Classes</span></a></li> 16 56 <li class="current"><a href="files.html"><span>Files</span></a></li> … … 35 75 <a name="l00036"></a>00036 pmsmsim_set_parameters ( Rs0, Ls0, Fmag0, Bf0, p0, kp0, J0, Uc0, DT0, dt0 ); 36 76 <a name="l00037"></a>00037 } 37 <a name="l00038"></a><a class="code" href="classpmsmDS.html#4e47e678eb56e0b3bd47d801d0995e46">00038</a> <span class="keywordtype">void</span> <a class="code" href="classpmsmDS.html#4e47e678eb56e0b3bd47d801d0995e46" title="Returns full vector of observed data .">getdata</a> ( vec &dt ) {dt=vec ( KalmanObs,6 );}77 <a name="l00038"></a><a class="code" href="classpmsmDS.html#4e47e678eb56e0b3bd47d801d0995e46">00038</a> <span class="keywordtype">void</span> <a class="code" href="classpmsmDS.html#4e47e678eb56e0b3bd47d801d0995e46" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ) {dt=vec ( KalmanObs,6 );} 38 78 <a name="l00039"></a><a class="code" href="classpmsmDS.html#35e9a2b9d82bd1b71d66778021d1e8b4">00039</a> <span class="keywordtype">void</span> <a class="code" href="classpmsmDS.html#35e9a2b9d82bd1b71d66778021d1e8b4" title="Accepts action variable and schedule it for application.">write</a> ( vec &ut ) {} 39 79 <a name="l00040"></a>00040 … … 62 102 <a name="l00063"></a>00063 }; 63 103 <a name="l00064"></a>00064 64 <a name="l00065"></a> 00065 <span class="keywordtype">void</span> log_add( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L ) {65 <a name="l00066"></a>00066 <a class="code" href="classpmsmDS.html#3975e648cc981a550997df8120e176f7" title="indeces of logged variables">L_x</a> = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1" title="returns an identifier which will be later needed for calling the log() function">add</a> ( rx, <span class="stringliteral">"x"</span> );66 <a name="l00067"></a>00067 L_oy = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1" title="returns an identifier which will be later needed for calling the log() function">add</a> ( ry, <span class="stringliteral">"obs"</span> );67 <a name="l00068"></a>00068 L_ou = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1" title="returns an identifier which will be later needed for calling the log() function">add</a> ( ru, <span class="stringliteral">"obs"</span> );68 <a name="l00069"></a>00069 L_iu = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1" title="returns an identifier which will be later needed for calling the log() function">add</a> ( ru, <span class="stringliteral">"true"</span> );104 <a name="l00065"></a><a class="code" href="classpmsmDS.html#d75b83468db25c56977ffccff46b0b37">00065</a> <span class="keywordtype">void</span> <a class="code" href="classpmsmDS.html#d75b83468db25c56977ffccff46b0b37" title="Register DS for logging into logger L.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L ) { 105 <a name="l00066"></a>00066 <a class="code" href="classpmsmDS.html#3975e648cc981a550997df8120e176f7" title="indeces of logged variables">L_x</a> = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1">add</a> ( rx, <span class="stringliteral">"x"</span> ); 106 <a name="l00067"></a>00067 L_oy = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1">add</a> ( ry, <span class="stringliteral">"obs"</span> ); 107 <a name="l00068"></a>00068 L_ou = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1">add</a> ( ru, <span class="stringliteral">"obs"</span> ); 108 <a name="l00069"></a>00069 L_iu = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1">add</a> ( ru, <span class="stringliteral">"true"</span> ); 69 109 <a name="l00070"></a>00070 <span class="comment">// log differences</span> 70 110 <a name="l00071"></a>00071 <span class="keywordflow">if</span> (<a class="code" href="classpmsmDS.html#d410b9ca1a362e50a0833ae67803b7ee">opt</a>.find(<span class="stringliteral">"u"</span>)==string::npos){ 71 <a name="l00072"></a>00072 L_optu = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1" title="returns an identifier which will be later needed for calling the log() function">add</a>(ru, <span class="stringliteral">"model"</span>);111 <a name="l00072"></a>00072 L_optu = L.<a class="code" href="classbdm_1_1logger.html#cfb4807e20b3d00f3d33e55ada528dc1">add</a>(ru, <span class="stringliteral">"model"</span>); 72 112 <a name="l00073"></a>00073 } 73 113 <a name="l00074"></a>00074 } 74 114 <a name="l00075"></a>00075 75 <a name="l00076"></a> 00076 <span class="keywordtype">void</span> logit( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L ) {115 <a name="l00076"></a><a class="code" href="classpmsmDS.html#21cac6deaac2dd073c982d7bec839b47">00076</a> <span class="keywordtype">void</span> <a class="code" href="classpmsmDS.html#21cac6deaac2dd073c982d7bec839b47" title="Register DS for logging into logger L.">logit</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L ) { 76 116 <a name="l00077"></a>00077 L.<a class="code" href="classbdm_1_1logger.html#397c014b0aaf3581516e2a105d26a5c9" title="log this vector">logit</a> ( <a class="code" href="classpmsmDS.html#3975e648cc981a550997df8120e176f7" title="indeces of logged variables">L_x</a>, vec ( x,4 ) ); 77 117 <a name="l00078"></a>00078 L.<a class="code" href="classbdm_1_1logger.html#397c014b0aaf3581516e2a105d26a5c9" title="log this vector">logit</a> ( L_oy, vec_2 ( KalmanObs[2],KalmanObs[3] ) ); … … 100 140 <a name="l00101"></a>00101 }; 101 141 </pre></div></div> 102 <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 6 12:16:292009 for mixpp by 142 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 18 17:38:41 2009 for mixpp by 103 143 <a href="http://www.doxygen.org/index.html"> 104 144 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>