Changeset 829 for trunk/src/MathUtils.h
- Timestamp:
- 02/17/06 15:04:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MathUtils.h
r465 r829 40 40 namespace mathutil { 41 41 42 // Add new entry to list43 template <class T>44 casa::uInt addEntry(casa::Vector<T>& list, T val);45 46 // Find the scan boundaries from a list of ScanIDs47 void scanBoundaries(casa::Vector<casa::uInt>& startInt,48 casa::Vector<casa::uInt>& endInt,49 const casa::Vector<casa::Int>& scanIDs);50 51 42 // Hanning smoothing 52 43 template <class T> 53 void hanning(casa::Vector<T>& out, casa::Vector<casa::Bool>& outmask, 54 const casa::Vector<T>& in, const casa::Vector<casa::Bool>& mask, 55 casa::Bool relaxed=casa::False, 44 void hanning(casa::Vector<T>& out, casa::Vector<casa::Bool>& outmask, 45 const casa::Vector<T>& in, const casa::Vector<casa::Bool>& mask, 46 casa::Bool relaxed=casa::False, 56 47 casa::Bool ignoreOther=casa::False); 57 48 58 49 // Generate specified statistic 59 float statistics(const casa::String& which, 50 float statistics(const casa::String& which, 60 51 const casa::MaskedArray<casa::Float>& data); 61 52 62 53 // Replace masked value by zero 63 void replaceMaskByZero(casa::Vector<casa::Float>& data, 54 void replaceMaskByZero(casa::Vector<casa::Float>& data, 64 55 const casa::Vector<casa::Bool>& mask); 65 56 66 // Extend the67 template <class T>68 void extendLastArrayAxis(casa::Array<T>& out, const casa::Array<T>& in,69 const T& initVal);70 71 57 std::vector<std::string> tovectorstring(const casa::Vector<casa::String>& in); 72 58
Note: See TracChangeset
for help on using the changeset viewer.