Show
Ignore:
Timestamp:
08/19/09 16:54:24 (15 years ago)
Author:
vbarta
Message:

using own error macros (basically copied from IT++, but never aborting)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/kalman.h

    r536 r565  
    286286public: 
    287287        void condition ( const vec &QR ) { 
    288                 it_assert_debug ( QR.length() == ( dimx + dimy ), "KFcondRQ: conditioning by incompatible vector" ); 
     288                bdm_assert_debug ( QR.length() == ( dimx + dimy ), "KFcondQR: conditioning by incompatible vector" ); 
    289289 
    290290                Q.setD ( QR ( 0, dimx - 1 ) ); 
     
    304304 
    305305        void condition ( const vec &R0 ) { 
    306                 it_assert_debug ( R0.length() == ( dimy ), "KFcondR: conditioning by incompatible vector" ); 
     306                bdm_assert_debug ( R0.length() == ( dimy ), "KFcondR: conditioning by incompatible vector" ); 
    307307 
    308308                R.setD ( R0 ); 
     
    338338        dimu = B0.cols(); 
    339339 
    340         it_assert_debug ( A0.cols() == dimx, "Kalman: A is not square" ); 
    341         it_assert_debug ( B0.rows() == dimx, "Kalman: B is not compatible" ); 
    342         it_assert_debug ( C0.cols() == dimx, "Kalman: C is not square" ); 
    343         it_assert_debug ( ( D0.rows() == dimy ) || ( D0.cols() == dimu ),       "Kalman: D is not compatible" ); 
    344         it_assert_debug ( ( R0.cols() == dimy ) || ( R0.rows() == dimy ), "Kalman: R is not compatible" ); 
    345         it_assert_debug ( ( Q0.cols() == dimx ) || ( Q0.rows() == dimx ), "Kalman: Q is not compatible" ); 
     340        bdm_assert_debug ( A0.cols() == dimx, "Kalman: A is not square" ); 
     341        bdm_assert_debug ( B0.rows() == dimx, "Kalman: B is not compatible" ); 
     342        bdm_assert_debug ( C0.cols() == dimx, "Kalman: C is not square" ); 
     343        bdm_assert_debug ( ( D0.rows() == dimy ) || ( D0.cols() == dimu ),      "Kalman: D is not compatible" ); 
     344        bdm_assert_debug ( ( R0.cols() == dimy ) || ( R0.rows() == dimy ), "Kalman: R is not compatible" ); 
     345        bdm_assert_debug ( ( Q0.cols() == dimx ) || ( Q0.rows() == dimx ), "Kalman: Q is not compatible" ); 
    346346 
    347347        A = A0; 
     
    355355template<class sq_T> 
    356356void Kalman<sq_T>::bayes ( const vec &dt ) { 
    357         it_assert_debug ( dt.length() == ( dimy + dimu ), "KalmanFull::bayes wrong size of dt" ); 
     357        bdm_assert_debug ( dt.length() == ( dimy + dimu ), "Kalman::bayes wrong size of dt" ); 
    358358 
    359359        sq_T iRy ( dimy ); 
     
    439439                break; 
    440440                default: 
    441                         it_error ( "unknown policy" ); 
     441                        bdm_error ( "unknown policy" ); 
    442442                } 
    443443                // copy result to all models 
     
    486486template<class sq_T> 
    487487void EKF<sq_T>::bayes ( const vec &dt ) { 
    488         it_assert_debug ( dt.length() == ( dimy + dimu ), "KalmanFull::bayes wrong size of dt" ); 
     488        bdm_assert_debug ( dt.length() == ( dimy + dimu ), "EKF<>::bayes wrong size of dt" ); 
    489489 
    490490        sq_T iRy ( dimy, dimy );