Changeset 3007
- Timestamp:
- 10/16/14 20:06:50 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/RowAccumulator.cpp
r2986 r3007 207 207 Float totalWeight = 1.0; 208 208 Vector<Bool> m = data.getMask(); 209 Float tsysWeight = addTsys(tsys, inverseMask);210 Float intervalWeight = addInterval(interval, inverseMask);211 addTime(time, inverseMask);212 209 if (!allEQ(m, False)) { // only add these if not everything masked 213 totalWeight *= tsysWeight; 214 totalWeight *= intervalWeight; 210 totalWeight *= addTsys(tsys, inverseMask); 211 totalWeight *= addInterval(interval, inverseMask); 212 addTime(time, inverseMask); 215 213 216 214 if (weightType_ == W_VAR) { … … 321 319 weightSum_.setData(w, Vector<Bool>(w.nelements(), True)); 322 320 323 tsysSum_ = tsysSumNoMask_; 324 intervalSum_ = intervalSumNoMask_; 325 } 321 if (allEQ(tsysSum_, 0.0f)) 322 tsysSum_ = tsysSumNoMask_; 323 if (intervalSum_ == 0.0) 324 intervalSum_ = intervalSumNoMask_; 325 }
Note:
See TracChangeset
for help on using the changeset viewer.