Changeset 465 for trunk/src/MathUtils.h


Ignore:
Timestamp:
02/17/05 14:46:17 (19 years ago)
Author:
mar637
Message:

Added SDFitTable to handle fits and expose them to python vi the sdfit class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MathUtils.h

    r452 r465  
    3232#define MATHUTILS_H
    3333
     34#include <string>
     35#include <vector>
    3436#include <casa/aips.h>
    3537#include <casa/Arrays/Vector.h>
     38#include <casa/BasicSL/String.h>
    3639
    3740namespace mathutil {
     
    4245
    4346// Find the scan boundaries from a list of ScanIDs
    44 void scanBoundaries (casa::Vector<casa::uInt>& startInt, 
    45                      casa::Vector<casa::uInt>& endInt,
    46                      const casa::Vector<casa::Int>& scanIDs);
     47void scanBoundaries(casa::Vector<casa::uInt>& startInt, 
     48                    casa::Vector<casa::uInt>& endInt,
     49                    const casa::Vector<casa::Int>& scanIDs);
    4750
    4851// Hanning smoothing
     
    5053void hanning(casa::Vector<T>& out, casa::Vector<casa::Bool>& outmask,
    5154             const casa::Vector<T>& in, const casa::Vector<casa::Bool>& mask,
    52              casa::Bool relaxed=False, casa::Bool ignoreOther=False);
     55             casa::Bool relaxed=casa::False,
     56             casa::Bool ignoreOther=casa::False);
    5357
    5458// Generate specified statistic
     
    5862// Replace masked value by zero
    5963void replaceMaskByZero(casa::Vector<casa::Float>& data,
    60                         const casa::Vector<casa::Bool>& mask);
     64                       const casa::Vector<casa::Bool>& mask);
    6165
    6266// Extend the
     
    6468void extendLastArrayAxis(casa::Array<T>& out, const casa::Array<T>& in,
    6569                         const T& initVal);
     70 
     71std::vector<std::string> tovectorstring(const casa::Vector<casa::String>& in);
     72
     73casa::Vector<casa::String> toVectorString(const std::vector<std::string>& in);
    6674
    6775};
Note: See TracChangeset for help on using the changeset viewer.