Changeset 465 for trunk/src/MathUtils.h
- Timestamp:
- 02/17/05 14:46:17 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MathUtils.h
r452 r465 32 32 #define MATHUTILS_H 33 33 34 #include <string> 35 #include <vector> 34 36 #include <casa/aips.h> 35 37 #include <casa/Arrays/Vector.h> 38 #include <casa/BasicSL/String.h> 36 39 37 40 namespace mathutil { … … 42 45 43 46 // Find the scan boundaries from a list of ScanIDs 44 void scanBoundaries 45 46 47 void scanBoundaries(casa::Vector<casa::uInt>& startInt, 48 casa::Vector<casa::uInt>& endInt, 49 const casa::Vector<casa::Int>& scanIDs); 47 50 48 51 // Hanning smoothing … … 50 53 void hanning(casa::Vector<T>& out, casa::Vector<casa::Bool>& outmask, 51 54 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); 53 57 54 58 // Generate specified statistic … … 58 62 // Replace masked value by zero 59 63 void replaceMaskByZero(casa::Vector<casa::Float>& data, 60 64 const casa::Vector<casa::Bool>& mask); 61 65 62 66 // Extend the … … 64 68 void extendLastArrayAxis(casa::Array<T>& out, const casa::Array<T>& in, 65 69 const T& initVal); 70 71 std::vector<std::string> tovectorstring(const casa::Vector<casa::String>& in); 72 73 casa::Vector<casa::String> toVectorString(const std::vector<std::string>& in); 66 74 67 75 };
Note: See TracChangeset
for help on using the changeset viewer.