Ignore:
Timestamp:
11/17/05 14:37:33 (19 years ago)
Author:
mar637
Message:

added frequency switching; implemented use of SDLog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.h

    r503 r716  
    3838
    3939#include "SDMemTableWrapper.h"
     40#include "SDMath.h"
    4041
    4142namespace asap {
     
    4344namespace SDMathWrapper {
    4445
    45 // Quotient
     46
     47  static SDMath sdmath;
     48  // Quotient
    4649  SDMemTableWrapper quotient(const SDMemTableWrapper& on,
    4750                             const SDMemTableWrapper& off,
    4851                             casa::Bool preserveContinuum);
    4952
    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
    6065  void addInSitu(SDMemTableWrapper& in, float offset, bool doAall);
    6166  SDMemTableWrapper add(const SDMemTableWrapper& in, float offset, bool all);
     
    7277
    7378// 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,
    7683                             float width);
    7784
    7885// 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);
    8190
    8291// Apply gain elevation correction
     
    101110
    102111// 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);
    105115
    106116// Average in time
     
    116126                               const std::string& weightStr);
    117127
    118 // Statistics
     128  // Frequency Switching
     129  void SDMathWrapper::frequencySwitchInSitu(SDMemTableWrapper& in);
     130
     131  SDMemTableWrapper
     132  SDMathWrapper::frequencySwitch(const SDMemTableWrapper& in);
     133
     134  // Statistics
    119135  std::vector<float> statistic(const SDMemTableWrapper& in,
    120136                               const std::vector<bool>& mask,
    121137                               const std::string& which, int row);
     138
    122139};
    123140
Note: See TracChangeset for help on using the changeset viewer.