Changeset 3399 in ntrip


Ignore:
Timestamp:
Sep 1, 2011, 4:41:27 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r3398 r3399  
    11911191  Tracer tracer("bncModel::update_p");
    11921192
    1193   // Bancroft Solution
    1194   // -----------------
    1195   if (cmpBancroft(epoData) != success) {
    1196     return failure;
    1197   }
    1198 
     1193  // Save Variance-Covariance Matrix, and Status Vector
     1194  // --------------------------------------------------
    11991195  rememberState(epoData);
    12001196
     
    12321228      }
    12331229      if (epoData->sizeSys('G') < MINOBS) {
     1230        continue;
     1231      }
     1232
     1233      // Bancroft Solution
     1234      // -----------------
     1235      if (cmpBancroft(epoData) != success) {
    12341236        continue;
    12351237      }
     
    12771279        ColumnVector vv = ll - AA * dx;
    12781280       
    1279         // Print Residuals
    1280         // ---------------
    1281         if (true) {
     1281        // Check the residuals
     1282        // -------------------
     1283        if ( outlierDetection(iPhase, vv, epoData->satData) ) {
     1284          restoreState(epoData);
     1285          break;
     1286        }
     1287
     1288        // Set estimated values
     1289        // --------------------
     1290        else if (!_usePhase || iPhase == 1) {
     1291          QVectorIterator<bncParam*> itPar(_params);
     1292          while (itPar.hasNext()) {
     1293            bncParam* par = itPar.next();
     1294            par->xx += dx(par->index);
     1295          }
     1296
     1297          // Print Neglected PRNs
     1298          // --------------------
     1299          if (nNeglected > 0) {
     1300            _log += "Neglected PRNs: ";
     1301            for (unsigned ip = 0; ip < allPrns.size(); ip++) {
     1302              QString prn = allPrns[ip];
     1303              if ( !findInVector(usedPrns, prn) ) {
     1304                _log += prn + " ";
     1305              }
     1306            }
     1307            _log += '\n';
     1308          }
     1309
     1310          // Print Residuals
     1311          // ---------------
    12821312          ostringstream str;
    12831313          str.setf(ios::fixed);
     
    12921322          }
    12931323          _log += str.str().c_str();
    1294         }
    12951324       
    1296         // Check the residuals
    1297         // -------------------
    1298         if ( outlierDetection(iPhase, vv, epoData->satData) ) {
    1299           restoreState(epoData);
    1300           break;
    1301         }
    1302 
    1303         // Set estimated values
    1304         // --------------------
    1305         else if (!_usePhase || iPhase == 1) {
    1306           QVectorIterator<bncParam*> itPar(_params);
    1307           while (itPar.hasNext()) {
    1308             bncParam* par = itPar.next();
    1309             par->xx += dx(par->index);
    1310           }
    13111325          return success;
    13121326        }
     
    13151329
    13161330    } while ( next_combination(allPrns.begin(), allPrns.end(),
    1317                                  usedPrns.begin(), usedPrns.end()) );
     1331                               usedPrns.begin(), usedPrns.end()) );
    13181332
    13191333  } // for (unsigned nNeglected
Note: See TracChangeset for help on using the changeset viewer.