Changeset 2081 in ntrip
- Timestamp:
- Dec 5, 2009, 3:10:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncmodel.cpp ¶
r2080 r2081 57 57 const double sig_clk_0 = 1000.0; 58 58 const double sig_amb_0 = 100.0; 59 const double sig_P3 = 1.0; 60 const double sig_L3 = 0.01; 59 61 60 62 // Constructor … … 392 394 // Create First-Design Matrix 393 395 // -------------------------- 394 Matrix AA(nObs, nPar); // first design matrix 395 ColumnVector ll(nObs); // tems observed-computed 396 Matrix AA(nObs, nPar); // first design matrix 397 ColumnVector ll(nObs); // tems observed-computed 398 SymmetricMatrix PP(nObs); PP = 0.0; 396 399 397 400 unsigned iObs = 0; … … 405 408 double rhoCmp = cmpValue(satData); 406 409 407 ll(iObs) = satData->P3 - rhoCmp; 410 ll(iObs) = satData->P3 - rhoCmp; 411 PP(iObs,iObs) = 1.0 / (sig_P3 * sig_P3); 408 412 for (int iPar = 1; iPar <= _params.size(); iPar++) { 409 413 AA(iObs, iPar) = _params[iPar-1]->partial(satData, ""); … … 411 415 412 416 ++iObs; 413 ll(iObs) = satData->L3 - rhoCmp; 417 ll(iObs) = satData->L3 - rhoCmp; 418 PP(iObs,iObs) = 1.0 / (sig_L3 * sig_L3); 414 419 for (int iPar = 1; iPar <= _params.size(); iPar++) { 415 420 if (_params[iPar-1]->type == bncParam::AMB_L3 && … … 424 429 // --------------------- 425 430 if (false) { 426 IdentityMatrix PP(nObs);427 431 SymmetricMatrix HH; HH << PP + AA * _QQ * AA.t(); 428 432 SymmetricMatrix Hi = HH.i(); … … 434 438 } 435 439 else { 436 IdentityMatrix PP(nObs);437 440 Matrix ATP = AA.t() * PP; 438 441 SymmetricMatrix NN = _QQ.i();
Note:
See TracChangeset
for help on using the changeset viewer.