- Timestamp:
- Sep 21, 2011, 6:01:03 PM (13 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r3432 r3433 39 39 const QString& ac_, const QString& prn_) { 40 40 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; 46 46 47 47 if (type == offAC) { … … 356 356 out << endl << "Combination:" << endl 357 357 << "------------------------------" << 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 } 358 374 359 375 // Prediction Step -
trunk/BNC/combination/bnccomb.h
r3432 r3433 43 43 class cmbAC { 44 44 public: 45 cmbAC() {} 45 cmbAC() { 46 weight = 0.0; 47 numObs = 0; 48 } 46 49 ~cmbAC() {} 47 50 QString mountPoint; 48 51 QString name; 49 52 double weight; 53 unsigned numObs; 50 54 }; 51 55
Note:
See TracChangeset
for help on using the changeset viewer.