Changeset 1333 for trunk/src/RowAccumulator.cpp
- Timestamp:
- 04/18/07 16:18:40 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/RowAccumulator.cpp
r1314 r1333 125 125 casa::Double asap::RowAccumulator::getTime( ) const 126 126 { 127 return timeSum_/max(n_); 127 Float n = max(n_); 128 if (n < 1.0) n = 1.0; 129 return timeSum_/n; 128 130 } 129 131 … … 135 137 casa::Vector< casa::Bool > RowAccumulator::getMask( ) const 136 138 { 139 // if no elements accumulated the mask is all True 140 // we have to return everything False 141 if (max(n_) < 1.0) return !spectrum_.getMask(); 137 142 return spectrum_.getMask(); 138 143 }
Note: See TracChangeset
for help on using the changeset viewer.