Show
Ignore:
Timestamp:
06/09/10 14:00:40 (14 years ago)
Author:
mido
Message:

astyle applied all over the library

Files:
1 modified

Legend:

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

    r797 r1064  
    2121class EKFful_unQR : public EKFfull  { 
    2222public: 
    23         void condition ( const vec &QR0 ) { 
    24                 Q = diag ( QR0 ( 0, dimension() - 1 ) ); 
    25                 R = diag ( QR0 ( dimension(), dimension() + dimy - 1 ) ); 
    26         }; 
     23    void condition ( const vec &QR0 ) { 
     24        Q = diag ( QR0 ( 0, dimension() - 1 ) ); 
     25        R = diag ( QR0 ( dimension(), dimension() + dimy - 1 ) ); 
     26    }; 
    2727}; 
    2828 
     
    3030class EKFCh_dQ : public EKFCh { 
    3131public: 
    32         root* _copy_() const { 
    33                 return new EKFCh_dQ(*this); 
    34         } 
     32    root* _copy_() const { 
     33        return new EKFCh_dQ(*this); 
     34    } 
    3535 
    36         //! new bayes, expects cond = [ut, Qt] 
    37         void bayes( const vec &yt , const vec &cond) { 
    38                 vec ut=cond.left(dimc-dimension()); 
    39                 vec dQt=cond.right(dimension()); 
    40                 Q.setD ( dQt, 0 ); 
    41                 //from EKF 
    42                 preA.set_submatrix ( dimy + dimension(), dimy, Q._Ch() ); 
    43                  
    44                 EKFCh::bayes(yt,ut); 
    45         }; 
    46         void validate() { 
    47                 EKFCh::validate(); 
    48                 dimc += dimension(); 
    49         } 
     36    //! new bayes, expects cond = [ut, Qt] 
     37    void bayes( const vec &yt , const vec &cond) { 
     38        vec ut=cond.left(dimc-dimension()); 
     39        vec dQt=cond.right(dimension()); 
     40        Q.setD ( dQt, 0 ); 
     41        //from EKF 
     42        preA.set_submatrix ( dimy + dimension(), dimy, Q._Ch() ); 
     43 
     44        EKFCh::bayes(yt,ut); 
     45    }; 
     46    void validate() { 
     47        EKFCh::validate(); 
     48        dimc += dimension(); 
     49    } 
    5050}; 
    5151 
     
    5353class EKFCh_chQ : public EKFCh { 
    5454public: 
    55         void condition ( const vec &chQ0 ) { 
    56                 Q.setCh ( chQ0 ); 
    57                 //from EKF 
    58                 preA.set_submatrix ( dimy + dimension(), dimension(), Q._Ch() ); 
    59         }; 
     55    void condition ( const vec &chQ0 ) { 
     56        Q.setCh ( chQ0 ); 
     57        //from EKF 
     58        preA.set_submatrix ( dimy + dimension(), dimension(), Q._Ch() ); 
     59    }; 
    6060}; 
    6161