Gaussian.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _Gaussian_H_
15 #define _Gaussian_H_
16 
17 #include "FunctionBase.h"
18 
19 namespace hippodraw {
20 
32 {
33 
34  private:
35 
38  enum { norm = 0, mean = 1, sigma = 2 };
39 
40 protected:
41 
43  virtual void initialize ();
44 
45 public:
46 
48  Gaussian ();
49 
51  Gaussian ( double norm, double mean, double sigma );
52 
53  virtual FunctionBase * clone () const;
54 
56  virtual double operator () ( double x ) const;
57 
58  virtual void initialParameters ( const FunctionHelper * helper );
59 
60 protected:
61 
62  virtual double derivByParm ( int i, double x ) const;
63 
64 private:
65 
68  double derivByNorm ( double x ) const;
69 
72  double derivByMean ( double x ) const;
73 
76  double derivBySigma ( double x ) const;
77 
78 };
79 
80 } // namespace hippodraw
81 
82 #endif // _Gaussian_H_

Generated for HippoDraw Class Library by doxygen