Changeset 2645 for trunk/src/Scantable.h


Ignore:
Timestamp:
09/04/12 18:58:06 (12 years ago)
Author:
WataruKawasaki
Message:

New Development: Yes

JIRA Issue: Yes CAS-4145

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: Yes

Module(s): scantable

Description: added scantable methods [auto_]chebyshev_baseline() to subtract baseline using Chebyshev polynomials.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.h

    r2641 r2645  
    522522                        const bool outLogger=false,
    523523                        const std::string& blfile="");
     524  void chebyshevBaseline(const std::vector<bool>& mask,
     525                         int order,
     526                         float thresClip,
     527                         int nIterClip,
     528                         bool getResidual=true,
     529                         const std::string& progressInfo="true,1000",
     530                         const bool outLogger=false,
     531                         const std::string& blfile="");
     532  void autoChebyshevBaseline(const std::vector<bool>& mask,
     533                             int order,
     534                             float thresClip,
     535                             int nIterClip,
     536                             const std::vector<int>& edge,
     537                             float threshold=3.0,
     538                             int chanAvgLimit=1,
     539                             bool getResidual=true,
     540                             const std::string& progressInfo="true,1000",
     541                             const bool outLogger=false,
     542                             const std::string& blfile="");
    524543  void cubicSplineBaseline(const std::vector<bool>& mask,
    525544                           int nPiece,
     
    710729
    711730  void fitBaseline(const std::vector<bool>& mask, int whichrow, Fitter& fitter);
     731  double getChebyshevPolynomial(int n, double x);
     732  std::vector<float> doChebyshevFitting(const std::vector<float>& data,
     733                                          const std::vector<bool>& mask,
     734                                          int order,
     735                                          std::vector<float>& params,
     736                                          int& nClipped,
     737                                          float thresClip=3.0,
     738                                          int nIterClip=1,
     739                                          bool getResidual=true);
    712740  std::vector<float> doCubicSplineFitting(const std::vector<float>& data,
    713741                                          const std::vector<bool>& mask,
Note: See TracChangeset for help on using the changeset viewer.