Show
Ignore:
Timestamp:
07/02/09 22:16:23 (15 years ago)
Author:
smidl
Message:

arx example for estimator workig

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/arx.cpp

    r377 r412  
    203203        //init 
    204204        mat V0; 
    205         if( set.exists("dV0") ) 
    206         { 
    207                 vec dV0; 
     205        vec dV0; 
     206        try { 
    208207                UI::get( dV0, set, "dV0" ); 
    209                 V0=diag ( dV0 ); 
    210         } 
    211         else 
    212                 V0=concat ( 1e-3*ones ( ylen ), 1e-5*ones ( rgrlen ) ); 
     208        } catch(...){ 
     209                dV0=concat ( 1e-3*ones ( ylen ), 1e-5*ones ( rgrlen ) ); 
     210        } 
     211        V0=diag ( dV0 ); 
    213212         
    214213        double nu0;