Changeset 1148 in Sophya for trunk/SigPredictor/fastlobes.h
- Timestamp:
- Aug 29, 2000, 12:03:24 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SigPredictor/fastlobes.h
r801 r1148 6 6 #include <math.h> 7 7 #ifdef __MWERKS__ 8 #include "mwerksmath.h"9 8 #include "unixmac.h" 10 9 #endif … … 23 22 sprintf(Name,"Lobe Gaussien"); 24 23 } 25 26 27 const UnitVector& VY) const {28 29 30 31 24 virtual ~LobeGaussien(){ }; 25 virtual double weigthAmpl(const UnitVector& VInteg, const UnitVector& VP, 26 const UnitVector& VY) const 27 { double cosinus=VP*VInteg; 28 if(cosinus>cosanglemax) 29 { if(cosinus<1.) 30 { double ang= acos(cosinus); 32 31 //return tabFExp(-ang*ang/(2*sigma*sigma)); 33 34 35 36 32 return exp(-ang*ang/(2*sigma*sigma)); 33 } 34 else return 1.; 35 } 37 36 else return 0.; 38 37 } 38 39 39 virtual double lobeResol() const{ 40 40 return sigma*2.354/3.; // On veut pixeliser/calculer au moins FWHM/3.
Note:
See TracChangeset
for help on using the changeset viewer.