Changeset 300 for trunk/src/SDMathWrapper.cc
- Timestamp:
- 01/26/05 02:00:25 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMathWrapper.cc
r295 r300 150 150 } 151 151 152 void SDMathWrapper::resampleInSitu(SDMemTableWrapper& in, const std::string& method, 153 float width) 154 { 155 SDMemTable* pIn = in.getPtr(); 156 SDMath sdm; 157 SDMemTable* pOut = sdm.resample(*pIn, String(method), Float(width)); 158 *pIn = *pOut; 159 delete pOut; 160 } 161 162 SDMemTableWrapper SDMathWrapper::resample (const SDMemTableWrapper& in, 163 const std::string& method, float width) 164 { 165 const CountedPtr<SDMemTable>& pIn = in.getCP(); 166 SDMath sdm; 167 return CountedPtr<SDMemTable>(sdm.resample(*pIn, String(method), Float(width))); 168 } 169 152 170 153 171 void SDMathWrapper::averagePolInSitu(SDMemTableWrapper& in,
Note: See TracChangeset
for help on using the changeset viewer.