00001
00002
00003 #ifndef __Gaussian_h__
00004 #define __Gaussian_h__
00005
00006 #include <cmath>
00007
00008
00009 #ifndef M_PI
00010 #define M_PI 3.1415926535897932385
00011 #endif
00012
00013 class Gaussian2d
00014 {
00015
00016 public:
00017 Gaussian2d(double xmean, double xsigma, double ymean, double ysigma);
00018
00019 double get_value(double x, double y);
00020
00021 private:
00022 double xmean_, ymean_;
00023 double xsigma_, ysigma_;
00024 double norm_, xcoeff_, ycoeff_;
00025
00026 };
00027
00028
00029
00030
00031 #endif // _Gaussian_h__