- Timestamp:
- Sep 1, 2011, 4:41:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r3398 r3399 1191 1191 Tracer tracer("bncModel::update_p"); 1192 1192 1193 // Bancroft Solution 1194 // ----------------- 1195 if (cmpBancroft(epoData) != success) { 1196 return failure; 1197 } 1198 1193 // Save Variance-Covariance Matrix, and Status Vector 1194 // -------------------------------------------------- 1199 1195 rememberState(epoData); 1200 1196 … … 1232 1228 } 1233 1229 if (epoData->sizeSys('G') < MINOBS) { 1230 continue; 1231 } 1232 1233 // Bancroft Solution 1234 // ----------------- 1235 if (cmpBancroft(epoData) != success) { 1234 1236 continue; 1235 1237 } … … 1277 1279 ColumnVector vv = ll - AA * dx; 1278 1280 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 // --------------- 1282 1312 ostringstream str; 1283 1313 str.setf(ios::fixed); … … 1292 1322 } 1293 1323 _log += str.str().c_str(); 1294 }1295 1324 1296 // Check the residuals1297 // -------------------1298 if ( outlierDetection(iPhase, vv, epoData->satData) ) {1299 restoreState(epoData);1300 break;1301 }1302 1303 // Set estimated values1304 // --------------------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 }1311 1325 return success; 1312 1326 } … … 1315 1329 1316 1330 } while ( next_combination(allPrns.begin(), allPrns.end(), 1317 1331 usedPrns.begin(), usedPrns.end()) ); 1318 1332 1319 1333 } // for (unsigned nNeglected
Note:
See TracChangeset
for help on using the changeset viewer.