source: Sophya/trunk/SigPredictor/meanlobe.h@ 2900

Last change on this file since 2900 was 1148, checked in by ansari, 25 years ago

mise a jour

File size: 797 bytes
Line 
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
14class MeanFreqLobe:public LobeSep {
15public:
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 DistribFlatFilter* pRespShape;
22 // Units conversion tools
23protected:
24 double One_ExcurFreq;
25 virtual double spectre(double freq) const {
26 if(freq<FreqMin||freq>FreqMax) return 0.;
27 return One_ExcurFreq;
28 }
29};
30
31
32#endif
Note: See TracBrowser for help on using the repository browser.