Changeset 1570 for trunk/src/STMath.cpp


Ignore:
Timestamp:
06/29/09 12:04:00 (15 years ago)
Author:
Malte Marquarding
Message:

Ticket #167: c++ part of running polynomial smoothing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r1569 r1570  
    13681368    if (d < 0) {
    13691369      Instrument inst =
    1370         STAttr::convertInstrument(tab.keywordSet().asString("AntennaName"), 
     1370        STAttr::convertInstrument(tab.keywordSet().asString("AntennaName"),
    13711371                                  True);
    13721372      STAttr sda;
     
    14571457CountedPtr< Scantable > STMath::smoothOther( const CountedPtr< Scantable >& in,
    14581458                                             const std::string& kernel,
    1459                                              float width )
     1459                                             float width, int order)
    14601460{
    14611461  CountedPtr< Scantable > out = getScantable(in, false);
     
    14781478      mathutil::runningMedian(specout, maskout, spec , mask, width);
    14791479      convertArray(flag, maskout);
     1480    } else if ( kernel == "poly" ) {
     1481      mathutil::polyfit(specout, maskout, spec, !mask, width, order);
     1482      convertArray(flag, !maskout);
    14801483    }
    14811484    flagCol.put(i, flag);
Note: See TracChangeset for help on using the changeset viewer.