Changeset 3393 in ntrip
- Timestamp:
- Aug 31, 2011, 11:45:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r3392 r3393 1229 1229 } 1230 1230 1231 bool outlierDetected = false;1232 1233 1231 // Loop over all Combinations of used Satellites 1234 1232 // --------------------------------------------- 1235 1233 do { 1236 1237 if (outlierDetected) {1238 _log += "TRY WITH PRNs: ";1239 for (unsigned ip = 0; ip < usedPrns.size(); ip++) {1240 _log += usedPrns[ip] + ' ';1241 }1242 _log += '\n';1243 }1244 1234 1245 1235 // Remove Neglected Satellites from epoData … … 1274 1264 } 1275 1265 1266 // Prepare first-design Matrix, vector observed-computed 1267 // ----------------------------------------------------- 1276 1268 Matrix AA(nObs, nPar); // first design matrix 1277 1269 ColumnVector ll(nObs); // tems observed-computed … … 1279 1271 1280 1272 unsigned iObs = 0; 1281 1282 // GPS1283 // ---1284 1273 QMapIterator<QString, t_satData*> it(epoData->satData); 1285 1274 while (it.hasNext()) { … … 1317 1306 // Check the residuals 1318 1307 // ------------------- 1319 outlierDetected = outlierDetection(iPhase, vv, epoData->satData); 1320 1321 if (outlierDetected) { 1308 if ( outlierDetection(iPhase, vv, epoData->satData) ) { 1322 1309 restoreState(epoData); 1323 1310 break; 1324 1311 } 1325 1312 1313 // Set estimated values 1314 // -------------------- 1315 else if (_usePhase || iPhase == 1) { 1316 QVectorIterator<bncParam*> itPar(_params); 1317 while (itPar.hasNext()) { 1318 bncParam* par = itPar.next(); 1319 par->xx += dx(par->index); 1320 } 1321 return success; 1322 } 1323 1326 1324 } // for (int iPhase = 0; iPhase <= (_usePhase ? 1 : 0); iPhase++) 1327 1328 // Update Parameters1329 // -----------------1330 if (!outlierDetected) {1331 QVectorIterator<bncParam*> itPar(_params);1332 while (itPar.hasNext()) {1333 bncParam* par = itPar.next();1334 par->xx += dx(par->index);1335 }1336 return success;1337 }1338 1325 1339 1326 } while ( next_combination(allPrns.begin(), allPrns.end(),
Note:
See TracChangeset
for help on using the changeset viewer.