Changeset 1570 for trunk/src/MathUtils.h


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

    r1373 r1570  
    5050 * @param ignoreOther drop every second channel (NYI)
    5151 */
    52 void hanning(casa::Vector<casa::Float>& out, 
     52void hanning(casa::Vector<casa::Float>& out,
    5353             casa::Vector<casa::Bool>& outmask,
    54              const casa::Vector<casa::Float>& in, 
     54             const casa::Vector<casa::Float>& in,
    5555             const casa::Vector<casa::Bool>& mask,
    5656             casa::Bool relaxed=casa::False,
     
    5959/**
    6060 * Apply a running median to  a masked vector.
    61  * Edge solution:  The first and last hwidth channels will be replicated 
     61 * Edge solution:  The first and last hwidth channels will be replicated
    6262 * from the first/last value from a full window.
    6363 * @param out the smoothed vector
     
    6767 * @param hwidth half-width of the smoothing window
    6868 */
    69  void runningMedian(casa::Vector<casa::Float>& out,
     69 void runningMedian(casa::Vector<casa::Float>& out,
     70                   casa::Vector<casa::Bool>& outflag,
     71                   const casa::Vector<casa::Float>& in,
     72                   const casa::Vector<casa::Bool>& flag,
     73                   float hwidth);
     74
     75 void polyfit(casa::Vector<casa::Float>& out,
    7076                   casa::Vector<casa::Bool>& outmask,
    71                    const casa::Vector<casa::Float>& in, 
     77                   const casa::Vector<casa::Float>& in,
    7278                   const casa::Vector<casa::Bool>& mask,
    73                    float hwidth);
     79                   float hwidth, int order);
     80
    7481
    7582// Generate specified statistic
Note: See TracChangeset for help on using the changeset viewer.