Show
Ignore:
Timestamp:
11/13/09 16:11:31 (15 years ago)
Author:
mido
Message:

astyler run over all test sources
general_suite added
cleanup of \test directory finished

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/stresssuite/kalman_stress.cpp

    r721 r722  
    6363        KF.set_parameters ( A, B, C, D, chmat ( Q ), chmat ( R ) ); 
    6464        KF.set_statistics ( mu0, chmat ( P0 ) ); //prediction! 
    65         KF.set_evalll(false); 
     65        KF.set_evalll ( false ); 
    6666        KF.validate(); 
    6767        const epdf& KFep = KF.posterior(); 
     
    7171        // FULL 
    7272        KalmanFull KF2; 
    73         KF2.set_parameters( A, B, C, D,  Q, R); 
    74         KF2.set_statistics( mu0, P0 ); 
    75         KF2.set_evalll(false); 
     73        KF2.set_parameters ( A, B, C, D,  Q, R ); 
     74        KF2.set_statistics ( mu0, P0 ); 
     75        KF2.set_evalll ( false ); 
    7676        KF2.validate(); 
    7777        mat Xt2 ( dimx, Ndat ); 
     
    8585        KFE.set_parameters ( fxu, hxu, Q, R ); 
    8686        KFE.set_statistics ( mu0, chmat ( P0 ) ); 
    87         KFE.set_evalll(false); 
     87        KFE.set_evalll ( false ); 
    8888        KFE.validate(); 
    8989        const epdf& KFEep = KFE.posterior(); 
     
    9898        tt.tic(); 
    9999        for ( int t = 1; t < Ndat; t++ ) { 
    100                 dt = Dt.get_col(t); 
    101                 KF.bayes ( dt.get(0,C.rows()-1), dt.get(C.rows(), dt.length()-1) ); 
     100                dt = Dt.get_col ( t ); 
     101                KF.bayes ( dt.get ( 0, C.rows() - 1 ), dt.get ( C.rows(), dt.length() - 1 ) ); 
    102102                Xt.set_col ( t, KFep.mean() ); 
    103103        } 
     
    106106        tt.tic(); 
    107107        for ( int t = 1; t < Ndat; t++ ) { 
    108                 dt = Dt.get_col(t); 
    109                 KF2.bayes ( dt.get(0,C.rows()-1), dt.get(C.rows(), dt.length()-1) ); 
     108                dt = Dt.get_col ( t ); 
     109                KF2.bayes ( dt.get ( 0, C.rows() - 1 ), dt.get ( C.rows(), dt.length() - 1 ) ); 
    110110                Xt2.set_col ( t, KF2.posterior().mean() ); 
    111111        } 
     
    114114        tt.tic(); 
    115115        for ( int t = 1; t < Ndat; t++ ) { 
    116                 dt = Dt.get_col(t); 
    117                 KFE.bayes ( dt.get(0,C.rows()-1), dt.get(C.rows(), dt.length()-1) ); 
     116                dt = Dt.get_col ( t ); 
     117                KFE.bayes ( dt.get ( 0, C.rows() - 1 ), dt.get ( C.rows(), dt.length() - 1 ) ); 
    118118                XtE.set_col ( t, KFEep.mean() ); 
    119119        }