Ignore:
Timestamp:
01/26/05 02:00:25 (19 years ago)
Author:
kil064
Message:

add resample wrappers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.cc

    r295 r300  
    150150}
    151151
     152void 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
     162SDMemTableWrapper 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
    152170
    153171void SDMathWrapper::averagePolInSitu(SDMemTableWrapper& in,
Note: See TracChangeset for help on using the changeset viewer.