Changeset 130 for trunk/src/SDMath.h


Ignore:
Timestamp:
12/20/04 15:44:42 (20 years ago)
Author:
kil064
Message:

Rewrite pretty much all of it to

  • use iterators rather than indexed for loops
  • loop over nrows

Fixed some minor bugs here and there
Added function 'statistics' to provide more statistics beyond standard deviation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMath.h

    r125 r130  
    3434#include <string>
    3535#include <vector>
     36#include <casa/aips.h>
    3637#include <casa/Utilities/CountedPtr.h>
    3738
     
    5960  averagePol(const casa::CountedPtr<SDMemTable>& in, const casa::Vector<casa::Bool>& mask);
    6061
    61   casa::Float rms(const casa::CountedPtr<SDMemTable>& in,
    62                    const std::vector<bool>& mask);
     62  std::vector<float> statistic(const casa::CountedPtr<SDMemTable>& in,
     63                                const std::vector<bool>& mask, const std::string& which);
    6364 
    6465  casa::CountedPtr<SDMemTable> bin(const casa::CountedPtr<SDMemTable>& in,
    6566                             casa::Int width);
     67
     68// private (not actually...)
     69
     70  float theStatistic(const std::string& which,  const casa::MaskedArray<casa::Float>& data);
     71 
    6672};
    6773
Note: See TracChangeset for help on using the changeset viewer.