Changeset 3789 in Sophya for trunk/Cosmo/RadioBeam/mdish.h


Ignore:
Timestamp:
Jun 27, 2010, 4:57:36 PM (15 years ago)
Author:
ansari
Message:

Corrections diverses, Reza 27/06/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/mdish.h

    r3788 r3789  
    2727public:
    2828  // 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.);
    3030
    3131  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_; }
    3334  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); }
    3537
    3638  inline void setLambdaRef(double lambda=1.)
    3739  { lambdaref_ = lambda; }
    3840  inline void setLambda(double lambda=1.)
    39   { lambda_ = lambda;  lambda_ratio_ = lambdaref_/lambda_; }
     41  { lambda_ = lambda;   lambda_ratio_ = lambda_/lambdaref_; }   
    4042 
    4143  // Return the 2D response for wave vector (kx,ky)
     
    7072class Four2DRespRatio : public  Four2DResponse {
    7173public:
    72   Four2DRespRatio(Four2DResponse& a, Four2DResponse& b);
     74  Four2DRespRatio(Four2DResponse& a, Four2DResponse& b, double divzthr=1.e-1);
    7375  // Return the ratio a.Value(kx,ky) / b.Value(kx, ky) - with protection against divide by zero
    7476  virtual double Value(double kx, double ky);
    7577  Four2DResponse& a_;
    7678  Four2DResponse& b_;
     79  double divzthr_;
    7780};
    7881
Note: See TracChangeset for help on using the changeset viewer.