Show
Ignore:
Timestamp:
08/05/09 14:40:03 (15 years ago)
Author:
mido
Message:

panove, vite, jak jsem peclivej na upravu kodu.. snad se vam bude libit:) konfigurace je v souboru /system/astylerc

Files:
1 modified

Legend:

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

    r384 r477  
    1616#include "kalman.h" 
    1717 
    18 namespace bdm{ 
     18namespace bdm { 
    1919 
    2020//!Extended Kalman filter with unknown \c Q and \c R 
     
    2222public: 
    2323        void condition ( const vec &QR0 ) { 
    24                 Q=diag(QR0(0,dimx-1)); 
    25                 R=diag(QR0(dimx,dimx+dimy-1)); 
     24                Q = diag ( QR0 ( 0, dimx - 1 ) ); 
     25                R = diag ( QR0 ( dimx, dimx + dimy - 1 ) ); 
    2626        }; 
    2727}; 
     
    3131public: 
    3232        void condition ( const vec &Q0 ) { 
    33                 Q.setD ( Q0,0 ); 
     33                Q.setD ( Q0, 0 ); 
    3434                //from EKF 
    35                 preA.set_submatrix ( dimy+dimx,dimy,Q._Ch() ); 
     35                preA.set_submatrix ( dimy + dimx, dimy, Q._Ch() ); 
    3636        }; 
    3737}; 
     
    3939//!Extended Kalman filter in Choleski form with unknown \c Q 
    4040class EKFCh_chQ : public EKFCh { 
    41         public: 
    42                 void condition ( const vec &chQ0 ) { 
    43                         Q.setCh ( chQ0); 
     41public: 
     42        void condition ( const vec &chQ0 ) { 
     43                Q.setCh ( chQ0 ); 
    4444                //from EKF 
    45                         preA.set_submatrix ( dimy+dimx,dimy,Q._Ch() ); 
    46                 }; 
     45                preA.set_submatrix ( dimy + dimx, dimy, Q._Ch() ); 
     46        }; 
    4747}; 
    4848 
    4949//!Extended Kalman filter with unknown parameters in \c IM 
    5050class EKFCh_cond : public EKFCh  { 
    51         public: 
    52                 void condition ( const vec &val ) { 
    53                         pfxu->condition ( val ); 
    54                 }; 
     51public: 
     52        void condition ( const vec &val ) { 
     53                pfxu->condition ( val ); 
     54        }; 
    5555}; 
    5656