Changeset 1373 for trunk/src/MathUtils.h


Ignore:
Timestamp:
07/12/07 11:43:56 (17 years ago)
Author:
mar637
Message:

Added running median to smooth. This addresses Ticket #115

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MathUtils.h

    r1325 r1373  
    5757             casa::Bool ignoreOther=casa::False);
    5858
     59/**
     60 * Apply a running median to  a masked vector.
     61 * Edge solution:  The first and last hwidth channels will be replicated
     62 * from the first/last value from a full window.
     63 * @param out the smoothed vector
     64 * @param outmask  the smoothed mask
     65 * @param in the input vector
     66 * @param mask the input mask
     67 * @param hwidth half-width of the smoothing window
     68 */
     69 void runningMedian(casa::Vector<casa::Float>& out,
     70                   casa::Vector<casa::Bool>& outmask,
     71                   const casa::Vector<casa::Float>& in,
     72                   const casa::Vector<casa::Bool>& mask,
     73                   float hwidth);
     74
    5975// Generate specified statistic
    6076float statistics(const casa::String& which,
     
    6682
    6783/**
    68  * Convert a std::vector of std::string
    69  * to a casa::Vector casa::String
    70  * @param in
    71  * @return
     84 * Convert casa implementations to stl
     85 * @param in casa string
     86 * @return a std vector of std strings
    7287 */
    7388std::vector<std::string> tovectorstring(const casa::Vector<casa::String>& in);
    7489
    7590/**
    76  * Convert a casa::Vector of casa::String
    77  * to a stl std::vector of stl std::string
     91 * convert stl implementations to casa versions
    7892 * @param in
    7993 * @return
Note: See TracChangeset for help on using the changeset viewer.