- Timestamp:
- Aug 21, 2008, 2:46:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r1044 r1052 416 416 int numLat = 0; 417 417 double sumLat = 0.; 418 double sumLatQ = 0.; 418 419 double meanDiff = 0.; 419 420 double minLat = maxDt; … … 602 603 if (numLat>0) { 603 604 if (meanDiff>0.) { 604 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4, %5epochs, %6gaps")605 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4, rms %5, %6 epochs, %7 gaps") 605 606 .arg(_staID.data()) 606 607 .arg(int(sumLat/numLat*100)/100.) 607 608 .arg(int(minLat*100)/100.) 608 609 .arg(int(maxLat*100)/100.) 610 .arg(int((sqrt((sumLatQ - sumLat * sumLat / numLat)/numLat))*100)/100.) 609 611 .arg(numLat) 610 612 .arg(numGaps) 611 613 .toAscii()) ); 612 614 } else { 613 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4, %5epochs")615 emit( newMessage(QString("%1: Mean latency %2 sec, min %3, max %4, rms %5, %6 epochs") 614 616 .arg(_staID.data()) 615 617 .arg(int(sumLat/numLat*100)/100.) 616 618 .arg(int(minLat*100)/100.) 617 619 .arg(int(maxLat*100)/100.) 620 .arg(int((sqrt((sumLatQ - sumLat * sumLat / numLat)/numLat))*100)/100.) 618 621 .arg(numLat) 619 622 .toAscii()) ); … … 624 627 numGaps = 0; 625 628 sumLat = 0.; 629 sumLatQ = 0.; 626 630 numLat = 0; 627 631 minLat = maxDt; … … 638 642 curLat = sec - obs->_o.GPSWeeks; 639 643 sumLat += curLat; 644 sumLatQ += curLat * curLat; 640 645 if (curLat < minLat) minLat = curLat; 641 646 if (curLat >= maxLat) maxLat = curLat;
Note:
See TracChangeset
for help on using the changeset viewer.