LogNormal.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _LogNormal_H_
15 #define _LogNormal_H_
16 
17 #include "FunctionBase.h"
18 
19 namespace hippodraw {
20 
29 {
30  private:
31 
34  enum { norm = 0, mu = 1, sigma = 2 };
35 
36  protected:
37 
39  virtual void initialize ();
40 
41  virtual double derivByParm ( int i, double x ) const;
42 
43 public:
44 
46  LogNormal ();
47 
51  LogNormal ( double norm, double mu, 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 
64  virtual bool hasDerivatives () const;
65 
66 };
67 
68 } // namespace hippodraw
69 
70 #endif // _LogNormal_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int i
A function that can be used with a fitter.
Definition: LogNormal.h:28
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