Changeset 3433 in ntrip for trunk


Ignore:
Timestamp:
Sep 21, 2011, 6:01:03 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3432 r3433  
    3939                   const QString& ac_, const QString& prn_) {
    4040
    41   type  = type_;
    42   index = index_;
    43   AC    = ac_;
    44   prn   = prn_;
    45   xx    = 0.0;
     41  type   = type_;
     42  index  = index_;
     43  AC     = ac_;
     44  prn    = prn_;
     45  xx     = 0.0;
    4646
    4747  if      (type == offAC) {
     
    356356  out << endl <<           "Combination:" << endl
    357357      << "------------------------------" << endl;
     358
     359  // Observation Statistics
     360  // ----------------------
     361  QListIterator<cmbAC*> icAC(_ACs);
     362  while (icAC.hasNext()) {
     363    cmbAC* AC = icAC.next();
     364    AC->numObs = 0;
     365    QVectorIterator<cmbCorr*> itCorr(_corrs);
     366    while (itCorr.hasNext()) {
     367      cmbCorr* corr = itCorr.next();
     368      if (corr->acName == AC->name) {
     369        AC->numObs += 1;
     370      }
     371    }
     372    out << AC->name.toAscii().data() << ": " << AC->numObs << endl;
     373  }
    358374
    359375  // Prediction Step
  • trunk/BNC/combination/bnccomb.h

    r3432 r3433  
    4343  class cmbAC {
    4444   public:
    45     cmbAC() {}
     45    cmbAC() {
     46      weight = 0.0;
     47      numObs = 0;
     48    }
    4649    ~cmbAC() {}
    4750    QString           mountPoint;
    4851    QString           name;
    4952    double            weight;
     53    unsigned          numObs;
    5054  };
    5155
Note: See TracChangeset for help on using the changeset viewer.