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/STMathWrapper.h

    r1541 r1570  
    130130
    131131  ScantableWrapper
    132     smooth(const ScantableWrapper& in, const std::string& kernel, float width)
    133   { return ScantableWrapper(STMath::smooth(in.getCP(), kernel, width)); }
     132    smooth(const ScantableWrapper& in, const std::string& kernel, float width,
     133           int order=2)
     134  { return ScantableWrapper(STMath::smooth(in.getCP(), kernel, width, order)); }
    134135
    135136  ScantableWrapper
     
    185186
    186187  ScantableWrapper lagFlag( const ScantableWrapper& in,
    187                             double frequency, double width )
    188   { return ScantableWrapper(STMath::lagFlag(in.getCP(), frequency, width)); }
     188                            double start, double end,
     189                            const std::string& mode="frequency" )
     190  { return ScantableWrapper(STMath::lagFlag(in.getCP(), start, end,
     191                                            mode)); }
    189192
    190193};
Note: See TracChangeset for help on using the changeset viewer.