Changeset 631
- Timestamp:
- 09/18/09 00:17:16 (15 years ago)
- Files:
-
- 1 added
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/estimator.cpp
r626 r631 157 157 Array<datalink_buffered*> Dls_buf (0); 158 158 for ( int i=0; i<Es.length(); i++ ) { 159 if (Es ( i )->_drv().mint()<0){ //delayed values are required 159 if (Es ( i )->_drv().mint()<0){ 160 //delayed values are required 161 162 //create delayed dl 163 int ith_buf=Dls_buf.size(); 164 Dls_buf.set_size( ith_buf + 1, true); 165 Dls_buf(ith_buf) = new datalink_buffered(); 160 166 //add dl to list of buffered DS 161 int ith_buf=Dls_buf.size();162 Dls_buf.set_size( ith_buf + 1);163 Dls_buf(ith_buf) = new datalink_buffered();164 167 Dls(i) = Dls_buf(ith_buf); 165 168 Dls(i)->set_connection ( Es ( i )->_drv(),Ds->_drv() ); //datalink between a datasource and estimator -
applications/bdmtoolbox/tutorial/userguide/RVjoin.m
r630 r631 7 7 r.times=[]; 8 8 for i=1:length(rvs) 9 r.names={r.names{:} rvs {i}.names{:}};10 r.sizes=[r.sizes rvs {i}.sizes];11 r.times=[r.times rvs {i}.times];9 r.names={r.names{:} rvs(i).names{:}}; 10 r.sizes=[r.sizes rvs(i).sizes]; 11 r.times=[r.times rvs(i).times]; 12 12 end -
applications/bdmtoolbox/tutorial/userguide/arx_basic_example.m
r630 r631 18 18 % plot results 19 19 ndat = size(M.u,1); 20 true_theta=[fy.A fy.const];21 true_R=[fy.R];22 20 23 21 subplot(1,2,1); -
applications/bdmtoolbox/tutorial/userguide/mpdfds_example.m
r630 r631 31 31 %%% store results 32 32 Data=[M.y'; M.u']; 33 drv = RVjoin({y,u}); 34 save mpdfds_results Data drv y u 33 drv = RVjoin([y,u]); 34 true_theta=[fy.A fy.const]; 35 true_R=[fy.R]; 36 save mpdfds_results Data drv y u true_theta true_R -
library/bdm/estim/arx.cpp
r625 r631 218 218 BM::set_options(opt); 219 219 } 220 if (!UI::get(have_constant, set, "constant", UI::optional)){ 220 int constant; 221 if (!UI::get(constant, set, "constant", UI::optional)){ 221 222 have_constant=true; 223 } else { 224 have_constant=constant>0; 222 225 } 223 226 if (have_constant) {rgrlen++;_dt=ones(rgrlen+ylen);} -
library/bdm/estim/arx.h
r625 r631 151 151 rv = RV({names_of_dt} ) // description of output variables 152 152 rgr = RV({names_of_regressors}, [-1,-2]} // description of regressor variables 153 constant = true; // booleanswitch if the constant term is modelled or not153 constant = 1; // 0/1 switch if the constant term is modelled or not 154 154 155 155 --- optional ---