| 
            Last change
 on this file since 949 was             801, checked in by ansari, 26 years ago           | 
        
        
          | 
             
Fichiers au format unix 
 
dominique 
 
           | 
        
        
          | 
            File size:
            802 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [801] | 1 |                         // Dominique YVON, CEA/DAPNIA/SPP 02/2000
 | 
|---|
 | 2 | 
 | 
|---|
 | 3 | #ifndef MeanFreqLobe_H
 | 
|---|
 | 4 | #define MeanFreqLobe_H
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | #include "lobesep.h"
 | 
|---|
 | 7 | #include "distribflatfilter.h"
 | 
|---|
 | 8 | 
 | 
|---|
 | 9 | /* Class design to implement mean lobes: 
 | 
|---|
 | 10 |    Lobes you spatial response do no depend on frequency.
 | 
|---|
 | 11 |    Thus behavior is completely described as behavior at mean frequency
 | 
|---|
 | 12 | */
 | 
|---|
 | 13 |  
 | 
|---|
 | 14 | class MeanFreqLobe:public LobeSep {
 | 
|---|
 | 15 | public:
 | 
|---|
 | 16 |   MeanFreqLobe(double freqMin, double freqMax):LobeSep(freqMin,freqMax) {
 | 
|---|
 | 17 |         pRespShape=new DistribFlatFilter(freqMin,freqMax);
 | 
|---|
 | 18 |         One_ExcurFreq=1.;
 | 
|---|
 | 19 |   }
 | 
|---|
 | 20 |   virtual ~MeanFreqLobe() {delete pRespShape;}
 | 
|---|
 | 21 | protected:
 | 
|---|
 | 22 |         double One_ExcurFreq;           
 | 
|---|
 | 23 |         virtual double spectre(double freq) const {
 | 
|---|
 | 24 |                 if(freq<FreqMin||freq>FreqMax) return 0.;
 | 
|---|
 | 25 |                 return One_ExcurFreq;
 | 
|---|
 | 26 |         }
 | 
|---|
 | 27 |         
 | 
|---|
 | 28 |     DistribFlatFilter* pRespShape;
 | 
|---|
 | 29 |                 // Units conversion tools
 | 
|---|
 | 30 | };
 | 
|---|
 | 31 | 
 | 
|---|
 | 32 | 
 | 
|---|
| [798] | 33 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.