| Last change
 on this file since 639 was             610, checked in by ansari, 26 years ago | 
        
          | 
Corrections diverses - programme tgsky.cc (generation aleatoire de ciel)
 
et skymixer.cc completee - Reza 21/11/99
 | 
        
          | File size:
            1.3 KB | 
      
      
| Rev | Line |  | 
|---|
| [601] | 1 | // This may look like C code, but it is really -*- C++ -*- | 
|---|
|  | 2 | //-------------------------------------------------------------------------- | 
|---|
|  | 3 | // File and Version Information: | 
|---|
| [610] | 4 | //      $Id: gaussfilt.h,v 1.3 1999-11-21 23:25:45 ansari Exp $ | 
|---|
| [601] | 5 | // | 
|---|
|  | 6 | // Description: | 
|---|
|  | 7 | // | 
|---|
|  | 8 | // History (add to end): | 
|---|
|  | 9 | //      Sophie   Oct, 1999  - creation | 
|---|
|  | 10 | // | 
|---|
|  | 11 | //------------------------------------------------------------------------ | 
|---|
|  | 12 |  | 
|---|
|  | 13 | #ifndef GAUSSFILT_H_SEEN | 
|---|
|  | 14 | #define GAUSSFILT_H_SEEN | 
|---|
|  | 15 |  | 
|---|
|  | 16 | //---------------------- | 
|---|
|  | 17 | // Base Class Headers -- | 
|---|
|  | 18 | //---------------------- | 
|---|
|  | 19 | #include "specresp.h" | 
|---|
|  | 20 |  | 
|---|
|  | 21 | //------------------------------------ | 
|---|
|  | 22 | // Collaborating Class Declarations -- | 
|---|
|  | 23 | //------------------------------------ | 
|---|
|  | 24 |  | 
|---|
|  | 25 | //              --------------------- | 
|---|
|  | 26 | //              -- Class Interface -- | 
|---|
|  | 27 | //              --------------------- | 
|---|
|  | 28 |  | 
|---|
| [610] | 29 | // Spectral response in the form  A Exp(-((nu-nu0)/s)^2) | 
|---|
| [601] | 30 |  | 
|---|
|  | 31 | class GaussianFilter:public SpectralResponse | 
|---|
|  | 32 | { | 
|---|
|  | 33 | public: | 
|---|
|  | 34 | //Constructors | 
|---|
|  | 35 | GaussianFilter (double nu0, double s, double a=1., double numin=0., double numax= 9.e49); | 
|---|
|  | 36 |  | 
|---|
|  | 37 |  | 
|---|
|  | 38 | // destructor | 
|---|
|  | 39 | virtual ~GaussianFilter(); | 
|---|
|  | 40 |  | 
|---|
|  | 41 | // | 
|---|
|  | 42 | //  Function members | 
|---|
|  | 43 | // | 
|---|
|  | 44 |  | 
|---|
|  | 45 | virtual double transmission(double) const; | 
|---|
|  | 46 | virtual double peakFreq() const; | 
|---|
|  | 47 | virtual double peakTransmission() const; | 
|---|
|  | 48 |  | 
|---|
|  | 49 | virtual void   Print(ostream& os)  const; | 
|---|
|  | 50 |  | 
|---|
|  | 51 | protected: | 
|---|
|  | 52 | double _a, _s, _nu0; | 
|---|
|  | 53 | }; | 
|---|
|  | 54 |  | 
|---|
|  | 55 |  | 
|---|
|  | 56 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.