Changeset 723 for applications/bdmtoolbox/mex
- Timestamp:
- 11/15/09 23:02:02 (15 years ago)
- Location:
- applications/bdmtoolbox/mex
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/controlloop.cpp
r706 r723 103 103 104 104 //DBG 105 Cfg.writeFile ( "c losedloop.cfg" );105 Cfg.writeFile ( "controlloop.cfg" ); 106 106 107 107 #else … … 111 111 fname = argv[1]; 112 112 } else { 113 fname="c losedloop.cfg";113 fname="controlloop.cfg"; 114 114 } 115 115 UIFile Cfg ( fname ); … … 119 119 Array<shared_ptr<Controller> > Cs; 120 120 UI::get ( Cs,Cfg, "controllers" ); 121 int Ndat=10 ;121 int Ndat=100; 122 122 if ( Cfg.exists ( "experiment" ) ) { 123 123 if ( Cfg.getRoot().lookupValue ( "experiment.ndat",Ndat ) ) { … … 187 187 Cs(i) -> adapt( Dlsc(i) ->pushdown(dt)); 188 188 vec ut=Cs ( i )->ctrlaction ( Dlsc(i) ->pushdown(dt) ); // update estimates 189 Ds->write(ut, vec_1(1)); 189 Ds->write(ut, vec_1(0)); 190 } else { 191 Ds->write(0.001*randn(Ds->_urv()._dsize())); 190 192 } 193 191 194 Cs ( i )->log_write (); 192 195 } … … 196 199 //update buffered fdat links 197 200 for (int i=0; i<Dls_buf.length(); i++){ 198 Dls_buf(i)->st ep(dt);201 Dls_buf(i)->store_data(dt); 199 202 } 200 203 -
applications/bdmtoolbox/mex/estimator.cpp
r706 r723 195 195 //update buffered fdat links 196 196 for (int i=0; i<Dls_buf.length(); i++){ 197 Dls_buf(i)->st ep(dt);197 Dls_buf(i)->store_data(dt); 198 198 } 199 199