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

Last change on this file since 1147 was 801, checked in by ansari, 25 years ago

Fichiers au format unix

dominique

File size: 802 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;}
21protected:
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
33#endif
Note: See TracBrowser for help on using the repository browser.