Changeset 6313 in ntrip
- Timestamp:
- Nov 7, 2014, 12:20:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r6312 r6313 816 816 QString prefixFrq = QString(" ") + frqType + QString(": "); 817 817 818 int numObs = 0; 819 int numSlipsFlagged = 0; 820 int numSlipsFound = 0; 821 int numGaps = 0; 818 int numObs = 0; 819 int numSlipsFlagged = 0; 820 int numSlipsFound = 0; 821 int numGaps = 0; 822 int numSNR = 0; 823 int numMP = 0; 824 double sumSNR = 0.0; 825 double sumMP = 0.0; 822 826 for (int ii = 0; ii < qcFrqVec.size(); ii++) { 823 827 const t_qcFrqSum* qcFrqSum = qcFrqVec[ii]; … … 826 830 numSlipsFound += qcFrqSum->_numSlipsFound ; 827 831 numGaps += qcFrqSum->_numGaps ; 832 numSNR += qcFrqSum->_numSNR; 833 numMP += qcFrqSum->_numMP; 834 sumSNR += qcFrqSum->_sumSNR * qcFrqSum->_numSNR; 835 sumMP += qcFrqSum->_sumMP * qcFrqSum->_numMP; 836 } 837 if (numSNR > 0) { 838 sumSNR /= numSNR; 839 } 840 if (numMP > 0) { 841 sumMP /= numMP; 828 842 } 829 843 *_log << endl … … 831 845 << prefixSys << prefixFrq << "Slips (file+found): " << numSlipsFlagged << " + " << numSlipsFound << endl 832 846 << prefixSys << prefixFrq << "Gaps : " << numGaps << endl 833 << prefixSys << prefixFrq << "Mean SNR : " << 0.0<< endl834 << prefixSys << prefixFrq << "Mean Multipath : " << 0.0<< endl;847 << prefixSys << prefixFrq << "Mean SNR : " << sumSNR << endl 848 << prefixSys << prefixFrq << "Mean Multipath : " << sumMP << endl; 835 849 } 836 850 }
Note:
See TracChangeset
for help on using the changeset viewer.