- Timestamp:
- Aug 4, 2014, 6:26:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/filter.cpp
r5799 r5800 207 207 // ------------------ 208 208 //// beg test 209 DiagonalMatrix PP(iObs+1); 210 for (int ii = 1; ii < iObs+1; ii++) { 211 PP(ii,ii) = Sl(ii,ii) * Sl(ii,ii); 212 } 213 bncModel::kalman(AA, ll, PP, _QFlt, _xFlt); 209 DiagonalMatrix PP(iObs+1); PP = 0.0; 210 for (int ii = 1; ii <= iObs+1; ii++) { 211 PP(ii,ii) = 1.0 / (Sl(ii,ii) * Sl(ii,ii)); 212 } 213 ColumnVector dx; 214 bncModel::kalman(AA, ll, PP, _QFlt, dx); 215 _xFlt += dx; 214 216 //// end test 215 217
Note:
See TracChangeset
for help on using the changeset viewer.