LogParabola.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _LogParabola_H_
15 #define _LogParabola_H_
16 
17 #include "FunctionBase.h"
18 
19 namespace hippodraw {
20 
30 {
31 private:
32  enum { NORM, ALPHA, BETA};
33 
34 protected:
35 
37  virtual void initialize ();
38 
39  virtual double derivByParm ( int i, double x ) const;
40 
41 public:
42 
44  LogParabola ();
45 
49  LogParabola ( double norm, double alpha, double beta);
50 
51  virtual FunctionBase * clone () const;
52 
54  virtual double operator () ( double x ) const;
55 
56  virtual void initialParameters ( const FunctionHelper * helper );
57 
58  virtual bool hasDerivatives () const;
59 
60 };
61 
62 } // namespace hippodraw
63 
64 #endif // _LogParabola_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int i
A function that can be used with a fitter.
Definition: LogParabola.h:29
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