Changeset 716 for trunk/src/SDMathWrapper.h
- Timestamp:
- 11/17/05 14:37:33 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMathWrapper.h
r503 r716 38 38 39 39 #include "SDMemTableWrapper.h" 40 #include "SDMath.h" 40 41 41 42 namespace asap { … … 43 44 namespace SDMathWrapper { 44 45 45 // Quotient 46 47 static SDMath sdmath; 48 // Quotient 46 49 SDMemTableWrapper quotient(const SDMemTableWrapper& on, 47 50 const SDMemTableWrapper& off, 48 51 casa::Bool preserveContinuum); 49 52 50 // Simple binary operations 51 SDMemTableWrapper binaryOperate (const SDMemTableWrapper& left, 52 const SDMemTableWrapper& right, 53 const std::string& op, bool doTSys); 54 55 // Multiply 56 void scaleInSitu(SDMemTableWrapper& in, float factor, bool doAll, bool doTSys); 57 SDMemTableWrapper scale(const SDMemTableWrapper& in, float factor, bool all, bool doTSys); 58 59 // Add 53 // Simple binary operations 54 SDMemTableWrapper binaryOperate(const SDMemTableWrapper& left, 55 const SDMemTableWrapper& right, 56 const std::string& op, bool doTSys); 57 58 // Multiply 59 void scaleInSitu(SDMemTableWrapper& in, float factor, bool doAll, 60 bool doTSys); 61 SDMemTableWrapper scale(const SDMemTableWrapper& in, float factor, 62 bool all, bool doTSys); 63 64 // Add 60 65 void addInSitu(SDMemTableWrapper& in, float offset, bool doAall); 61 66 SDMemTableWrapper add(const SDMemTableWrapper& in, float offset, bool all); … … 72 77 73 78 // Resample 74 void resampleInSitu(SDMemTableWrapper& in, const std::string& method, float width); 75 SDMemTableWrapper resample(const SDMemTableWrapper& in, const std::string& method, 79 void resampleInSitu(SDMemTableWrapper& in, const std::string& method, 80 float width); 81 SDMemTableWrapper resample(const SDMemTableWrapper& in, 82 const std::string& method, 76 83 float width); 77 84 78 85 // Convert brightness between Jy and K 79 void convertFluxInSitu(SDMemTableWrapper& in, float D, float eta, float JyPerK, bool doAll); 80 SDMemTableWrapper convertFlux(const SDMemTableWrapper& in, float D, float eta, float JyPerK, bool doAll); 86 void convertFluxInSitu(SDMemTableWrapper& in, float D, float eta, 87 float JyPerK, bool doAll); 88 SDMemTableWrapper convertFlux(const SDMemTableWrapper& in, float D, 89 float eta, float JyPerK, bool doAll); 81 90 82 91 // Apply gain elevation correction … … 101 110 102 111 // Apply opacity correction 103 void opacityInSitu (SDMemTableWrapper& in, float tau, bool doAll); 104 SDMemTableWrapper opacity (const SDMemTableWrapper& in, float tau, bool doAll); 112 void opacityInSitu(SDMemTableWrapper& in, float tau, bool doAll); 113 SDMemTableWrapper opacity(const SDMemTableWrapper& in, float tau, 114 bool doAll); 105 115 106 116 // Average in time … … 116 126 const std::string& weightStr); 117 127 118 // Statistics 128 // Frequency Switching 129 void SDMathWrapper::frequencySwitchInSitu(SDMemTableWrapper& in); 130 131 SDMemTableWrapper 132 SDMathWrapper::frequencySwitch(const SDMemTableWrapper& in); 133 134 // Statistics 119 135 std::vector<float> statistic(const SDMemTableWrapper& in, 120 136 const std::vector<bool>& mask, 121 137 const std::string& which, int row); 138 122 139 }; 123 140
Note: See TracChangeset
for help on using the changeset viewer.