Changeset 9524 in ntrip
- Timestamp:
- Oct 22, 2021, 1:56:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppFilter.cpp
r9521 r9524 86 86 } 87 87 const vector<t_pppParam*>& params = _parlist.params(); 88 unsigned nPar = _parlist.nPar(); 88 89 #ifdef BNC_DEBUG_PPP 89 for (unsigned iPar = 0; iPar < params.size(); iPar++) {90 for (unsigned iPar = 0; iPar < nPar; iPar++) { 90 91 LOG << "t_pppFilter::processEpoch par_cur " << params[iPar]->toString() 91 92 << " lastObsTime().valid() " << params[iPar]->lastObsTime().valid() … … 99 100 SymmetricMatrix QFltOld = _QFlt; 100 101 101 _QFlt.ReSize( _parlist.nPar()); _QFlt = 0.0;102 _xFlt.ReSize( _parlist.nPar()); _xFlt = 0.0;103 _x0.ReSize( _parlist.nPar()); _x0 = 0.0;104 105 for (unsigned ii = 0; ii < params.size(); ii++) {102 _QFlt.ReSize(nPar); _QFlt = 0.0; 103 _xFlt.ReSize(nPar); _xFlt = 0.0; 104 _x0.ReSize(nPar); _x0 = 0.0; 105 106 for (unsigned ii = 0; ii < nPar; ii++) { 106 107 t_pppParam* par1 = params[ii]; 107 108 if (QFltOld.size() == 0) { … … 227 228 string epoTimeStr = string(_epoTime); 228 229 const vector<t_pppParam*>& params = _parlist.params(); 230 unsigned nPar = _parlist.nPar(); 229 231 230 232 unsigned usedLCs = LCs.size(); … … 256 258 // First-Design Matrix, Terms Observed-Computed, Weight Matrix 257 259 // ----------------------------------------------------------- 258 Matrix AA(maxObs, _parlist.nPar());260 Matrix AA(maxObs, nPar); 259 261 ColumnVector ll(maxObs); 260 262 DiagonalMatrix PP(maxObs); PP = 0.0; … … 279 281 usedObs.push_back(obs); 280 282 usedTypes.push_back(tLC); 281 for (unsigned iPar = 0; iPar < params.size(); iPar++) {283 for (unsigned iPar = 0; iPar < nPar; iPar++) { 282 284 const t_pppParam* par = params[iPar]; 283 285 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC, refPrn); … … 303 305 usedObs.push_back(obs); 304 306 usedTypes.push_back(tLC); 305 for (unsigned iPar = 0; iPar < params.size(); iPar++) {307 for (unsigned iPar = 0; iPar < nPar; iPar++) { 306 308 const t_pppParam* par = params[iPar]; 307 309 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC, refPrn); … … 334 336 usedObs.push_back(obs); 335 337 usedTypes.push_back(tLC); 336 for (unsigned iPar = 0; iPar < params.size(); iPar++) {338 for (unsigned iPar = 0; iPar < nPar; iPar++) { 337 339 const t_pppParam* par = params[iPar]; 338 340 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC, refPrn); … … 385 387 << obs->prn().toString() << ' ' 386 388 << setw(8) << setprecision(4) << maxOutlier << endl; 387 for (unsigned iPar = 0; iPar < params.size(); iPar++) {389 for (unsigned iPar = 0; iPar < nPar; iPar++) { 388 390 t_pppParam* hlp = params[iPar]; 389 391 if (hlp->type() == t_pppParam::amb && … … 461 463 string epoTimeStr = string(_epoTime); 462 464 const vector<t_pppParam*>& params = _parlist.params(); 465 unsigned nPar = _parlist.nPar(); 463 466 464 467 for (unsigned ii = 0; ii < LCs.size(); ii++) { … … 512 515 else { 513 516 if (refPrn != t_prn()) {return success;} 514 ColumnVector AA( params.size());515 for (unsigned iPar = 0; iPar < params.size(); iPar++) {517 ColumnVector AA(nPar); 518 for (unsigned iPar = 0; iPar < nPar; iPar++) { 516 519 const t_pppParam* par = params[iPar]; 517 520 AA[iPar] = par->partial(_epoTime, obs, tLC, refPrn); … … 713 716 return failure; 714 717 } 715 vector<t_pppParam*>& _params = _parlist.params();718 const vector<t_pppParam*>& params = _parlist.params(); 716 719 unsigned nPar = _parlist.nPar(); 717 720 #ifdef BNC_DEBUG_PPP 718 LOG << " t_pppFilter::datumTransformation par last epoch: " << _params.size()<< "/" << nPar << endl;721 LOG << " t_pppFilter::datumTransformation par last epoch: " << nPar << "/" << nPar << endl; 719 722 for (unsigned iPar = 0; iPar < nPar; iPar++) { 720 LOG << "t_pppFilter::processEpoch par_cur " << _params[iPar]->toString()721 << " lastObsTime().valid() " << _params[iPar]->lastObsTime().valid()722 << " epoTime-params[iPar]->lastObsTime() " << (_epoTime - _params[iPar]->lastObsTime()) << endl;723 LOG << "t_pppFilter::processEpoch par_cur " << params[iPar]->toString() 724 << " lastObsTime().valid() " << params[iPar]->lastObsTime().valid() 725 << " epoTime-params[iPar]->lastObsTime() " << (_epoTime - params[iPar]->lastObsTime()) << endl; 723 726 } 724 727 #endif … … 755 758 } 756 759 Matrix AA(maxObs, nPar); 760 757 761 // Real Observations 758 762 // ----------------- … … 765 769 if (tLC == t_lc::Tz0) {continue;} 766 770 ++iObs; 767 for (unsigned iPar = 0; iPar < _params.size(); iPar++) {768 const t_pppParam* par = _params[iPar];771 for (unsigned iPar = 0; iPar < nPar; iPar++) { 772 const t_pppParam* par = params[iPar]; 769 773 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC, refPrn); 770 774 } … … 783 787 ++iObs; 784 788 pseudoObsTropoConsidered = true; 785 for (unsigned iPar = 0; iPar < _params.size(); iPar++) {786 const t_pppParam* par = _params[iPar];789 for (unsigned iPar = 0; iPar < nPar; iPar++) { 790 const t_pppParam* par = params[iPar]; 787 791 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC, refPrn); 788 792 }
Note:
See TracChangeset
for help on using the changeset viewer.