Changeset 721 for library/tests/stresssuite/kalman_stress.cpp
- Timestamp:
- 11/13/09 09:15:50 (15 years ago)
- Files:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
library/tests/stresssuite/kalman_stress.cpp
r717 r721 1 1 2 2 #include <estim/kalman.h> 3 #include "../mat_checks.h" 3 4 4 5 using namespace bdm; … … 8 9 using std::endl; 9 10 10 int main() {11 TEST ( kalman_stress ) { 11 12 // Kalman filter 12 13 mat A, B, C, D, R, Q, P0; … … 14 15 mat Mu0;; 15 16 // input from Matlab 16 it_file fin ( " testKF.it" );17 it_file fin ( "kalman_stress.it" ); 17 18 18 19 mat Dt; … … 21 22 bool xxx = fin.seek ( "d" ); 22 23 if ( !xxx ) { 23 bdm_error ( " testKF.it not found" );24 bdm_error ( "kalman_stress.it not found" ); 24 25 } 25 26 fin >> Dt; … … 120 121 121 122 122 it_file fou ( " testKF_res.it" );123 it_file fou ( "kalman_stress_res.it" ); 123 124 fou << Name ( "xth" ) << Xt; 124 125 fou << Name ( "xth2" ) << Xt2; 125 126 fou << Name ( "xthE" ) << XtE; 126 127 fou << Name ( "exec_times" ) << exec_times; 127 //Exit program:128 return 0;129 130 128 }