Changeset 3789 in Sophya for trunk/Cosmo/RadioBeam/mdish.h
- Timestamp:
- Jun 27, 2010, 4:57:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/mdish.h
r3788 r3789 27 27 public: 28 28 // On donne dx=D/lambda=Dx/lambda , dy=Dy/lambda 29 Four2DResponse(int typ, double dx, double dy );29 Four2DResponse(int typ, double dx, double dy, double lambda=1.); 30 30 31 31 Four2DResponse(Four2DResponse const& a) 32 { typ_ = a.typ_; dx_=a.dx_; dy_=a.dy_; } 32 { typ_ = a.typ_; dx_=a.dx_; dy_=a.dy_; lambdaref_=a.lambdaref_; 33 lambda_=a.lambda_; lambda_ratio_=a.lambda_ratio_; } 33 34 Four2DResponse& operator=(Four2DResponse const& a) 34 { typ_ = a.typ_; dx_=a.dx_; dy_=a.dy_; return (*this); } 35 { typ_ = a.typ_; dx_=a.dx_; dy_=a.dy_; lambdaref_=a.lambdaref_; 36 lambda_=a.lambda_; lambda_ratio_=a.lambda_ratio_; return (*this); } 35 37 36 38 inline void setLambdaRef(double lambda=1.) 37 39 { lambdaref_ = lambda; } 38 40 inline void setLambda(double lambda=1.) 39 { lambda_ = lambda; lambda_ratio_ = lambdaref_/lambda_; }41 { lambda_ = lambda; lambda_ratio_ = lambda_/lambdaref_; } 40 42 41 43 // Return the 2D response for wave vector (kx,ky) … … 70 72 class Four2DRespRatio : public Four2DResponse { 71 73 public: 72 Four2DRespRatio(Four2DResponse& a, Four2DResponse& b );74 Four2DRespRatio(Four2DResponse& a, Four2DResponse& b, double divzthr=1.e-1); 73 75 // Return the ratio a.Value(kx,ky) / b.Value(kx, ky) - with protection against divide by zero 74 76 virtual double Value(double kx, double ky); 75 77 Four2DResponse& a_; 76 78 Four2DResponse& b_; 79 double divzthr_; 77 80 }; 78 81
Note:
See TracChangeset
for help on using the changeset viewer.