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_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int i
A function that can be used with a fitter.
Definition: Gaussian.h:31
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
A function that can be added to a DataRep and used in a fitter.
Definition: FunctionBase.h:90
double norm(const std::vector< double > &a)
Computes the two norm of the vector.
Definition: NumLinAlg.cxx:285
An abstract base class to help FunctionBase objects perform some operations.
hippodraw::FunctionBase class interface

Generated for HippoDraw Class Library by doxygen