Changeset 354 for doc/html/libDS_8h-source.html
- Timestamp:
- 06/02/09 10:24:26 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/libDS_8h-source.html
r353 r354 84 84 <a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indeces ); 85 85 <a name="l00043"></a>00043 <span class="keywordtype">void</span> set_rvs ( <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &drv, <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &urv ); 86 <a name="l00044"></a><a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5">00044</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a> ( vec &ut ) { <a class="code" href="group__errorhandlingfunc.html#g22d38e98332f9edff88cc501463eedce" title="Abort unconditionally.">it_error</a>( <span class="stringliteral">"MemDS::write is not supported"</span> );}87 <a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a> ( vec &ut,ivec &indices ) { <a class="code" href="group__errorhandlingfunc.html#g22d38e98332f9edff88cc501463eedce" title="Abort unconditionally.">it_error</a>( <span class="stringliteral">"MemDS::write is not supported"</span> );}86 <a name="l00044"></a><a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5">00044</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a> ( vec &ut ) {it_error ( <span class="stringliteral">"MemDS::write is not supported"</span> );} 87 <a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a> ( vec &ut,ivec &indices ) {it_error ( <span class="stringliteral">"MemDS::write is not supported"</span> );} 88 88 <a name="l00046"></a>00046 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#21916feb3e5ff960855c09b06a0d279b" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>(); 89 89 <a name="l00048"></a><a class="code" href="classbdm_1_1MemDS.html#1ea231f4066652996cde4826560d93e3">00048</a> <a class="code" href="classbdm_1_1MemDS.html#1ea231f4066652996cde4826560d93e3" title="Default constructor.">MemDS</a> () {}; … … 95 95 <a name="l00057"></a>00057 <span class="keyword">public</span>: 96 96 <a name="l00058"></a><a class="code" href="classbdm_1_1FileDS.html#0bf36650e9d1af2d0743ffe8a3fcff14">00058</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#0bf36650e9d1af2d0743ffe8a3fcff14" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ) { 97 <a name="l00059"></a>00059 <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a>( dt.length() ==<a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.rows(),<span class="stringliteral">""</span> );97 <a name="l00059"></a>00059 it_assert_debug ( dt.length() ==<a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.rows(),<span class="stringliteral">""</span> ); 98 98 <a name="l00060"></a>00060 dt = <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.get_col(<a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a>); 99 99 <a name="l00061"></a>00061 }; 100 100 <a name="l00062"></a><a class="code" href="classbdm_1_1FileDS.html#ed680c40e53fd838c044dc223421c0fe">00062</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#ed680c40e53fd838c044dc223421c0fe" title="Returns data records at indeces.">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indeces ){ 101 <a name="l00063"></a>00063 <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a>( dt.length() ==indeces.length(),<span class="stringliteral">""</span> );101 <a name="l00063"></a>00063 it_assert_debug ( dt.length() ==indeces.length(),<span class="stringliteral">""</span> ); 102 102 <a name="l00064"></a>00064 vec tmp(indeces.length()); 103 103 <a name="l00065"></a>00065 tmp = <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.get_col(<a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a>); … … 113 113 <a name="l00084"></a>00084 <span class="keyword">public</span>: 114 114 <a name="l00085"></a>00085 <a class="code" href="classbdm_1_1ITppFileDS.html" title="Read Data Matrix from an IT file.">ITppFileDS</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span> &fname, <span class="keyword">const</span> <span class="keywordtype">string</span> &varname ) :<a class="code" href="classbdm_1_1FileDS.html">FileDS</a>() { 115 <a name="l00086"></a>00086 <a class="code" href="classitpp_1_1it__file.html" title="The IT++ file format reading and writing class.">it_file</a>it ( fname );116 <a name="l00087"></a>00087 it << <a class="code" href="classitpp_1_1Name.html" title="Automatic naming when savingAn easy way to give a variable a name and optionally...">Name</a>( varname );115 <a name="l00086"></a>00086 it_file it ( fname ); 116 <a name="l00087"></a>00087 it << Name ( varname ); 117 117 <a name="l00088"></a>00088 it >> <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>; 118 118 <a name="l00089"></a>00089 <a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> = 0; … … 147 147 <a name="l00138"></a>00138 }; 148 148 <a name="l00139"></a><a class="code" href="classbdm_1_1ArxDS.html#701151418bc5fc3861acef8359fb0d80">00139</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#701151418bc5fc3861acef8359fb0d80" title="Returns data records at indeces.">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indices ) { 149 <a name="l00140"></a>00140 <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a>( dt.length() ==indices.length(),<span class="stringliteral">"ArxDS"</span> );149 <a name="l00140"></a>00140 it_assert_debug ( dt.length() ==indices.length(),<span class="stringliteral">"ArxDS"</span> ); 150 150 <a name="l00141"></a>00141 dt=<a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a> ( indices ); 151 151 <a name="l00142"></a>00142 }; … … 155 155 <a name="l00146"></a>00146 }; 156 156 <a name="l00147"></a><a class="code" href="classbdm_1_1ArxDS.html#477fd706639535f520e9dbbd19f73318">00147</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#477fd706639535f520e9dbbd19f73318" title="Accepts action variables at specific indeces.">write</a> ( vec &ut, <span class="keyword">const</span> ivec &indices ) { 157 <a name="l00148"></a>00148 <a class="code" href="group__errorhandlingfunc.html#gb319550e696ee9d824d23c2a176bc3a6" title="Abort if t is not true and NDEBUG is not defined.">it_assert_debug</a>( ut.length() ==indices.length(),<span class="stringliteral">"ArxDS"</span> );157 <a name="l00148"></a>00148 it_assert_debug ( ut.length() ==indices.length(),<span class="stringliteral">"ArxDS"</span> ); 158 158 <a name="l00149"></a>00149 set_subvector ( <a class="code" href="classbdm_1_1ArxDS.html#392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a>, indices,ut ); 159 159 <a name="l00150"></a>00150 }; … … 227 227 <a name="l00228"></a>00228 }; 228 228 <a name="l00229"></a>00229 229 <a name="l00230"></a>00230 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__logexpfunc.html#g1b295e7695ab2a3290bfadb26a149304" title="Safe substitute for log(exp(log_a) + exp(log_b)).">log_add</a>( logger &L ) {230 <a name="l00231"></a>00231 <a class="code" href=" group__logexpfunc.html#g1b295e7695ab2a3290bfadb26a149304" title="Safe substitute for log(exp(log_a) + exp(log_b)).">DS::log_add</a> ( L );229 <a name="l00230"></a>00230 <span class="keyword">virtual</span> <span class="keywordtype">void</span> log_add ( logger &L ) { 230 <a name="l00231"></a>00231 <a class="code" href="classbdm_1_1DS.html#3c9e417d85052396fe74c164857ee67e" title="Register DS for logging into logger L.">DS::log_add</a> ( L ); 231 231 <a name="l00232"></a>00232 L_xt=L.add ( IM->_rv(),<span class="stringliteral">"true"</span> ); 232 232 <a name="l00233"></a>00233 } … … 242 242 <a name="l00243"></a>00243 <span class="preprocessor">#endif // DS_H</span> 243 243 </pre></div></div> 244 <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10: 02:112009 for mixpp by 244 <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:11:00 2009 for mixpp by 245 245 <a href="http://www.doxygen.org/index.html"> 246 246 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>