LMFitter.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _LMFitter_H_
15 #define _LMFitter_H_
16 
17 #include "Fitter.h"
18 
19 namespace hippodraw {
20 
34 {
35 
36 private:
37 
40  LMFitter ( const LMFitter & );
41 
43  std::vector < std::vector < double > > m_alpha;
44 
46  std::vector < double > m_beta;
47 
51  double m_chi_cutoff;
52 
55 
57  double m_lambda;
58 
61 
64 
65 public:
66 
69  LMFitter ( const char * name );
70 
71  Fitter * clone () const;
72 
75  virtual bool calcBestFit ();
76 
79  virtual bool calcStep ();
80 
82  virtual void calcAlpha ();
83 
87  virtual int calcCovariance ( std::vector< std::vector < double > >& cov );
88 
90  virtual bool solveSystem ();
91 
95  virtual void setFCN ( StatedFCN * fcn );
96 
97 };
98 
99 } // namespace hippodraw
100 
101 #endif // _LMFitter_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
double m_start_lambda
The starting lambda factor.
Definition: LMFitter.h:54
double m_lambda_expand_factor
The factor by which lambda is divided if it is too small.
Definition: LMFitter.h:63
The base class for fitters.
Definition: Fitter.h:33
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
double m_chi_cutoff
The Chi Squared cut-off parameter.
Definition: LMFitter.h:51
hippodraw::Fitter class interface
std::vector< double > m_beta
The beta vector.
Definition: LMFitter.h:46
double m_lambda_shrink_factor
The factor by which lambda is divided if it is too large.
Definition: LMFitter.h:60
A Fitter class.
Definition: LMFitter.h:33
double m_lambda
The current lambda factor.
Definition: LMFitter.h:57
A derived class for FCNBase class.
Definition: StatedFCN.h:70
std::vector< std::vector< double > > m_alpha
The alpha matrix.
Definition: LMFitter.h:43

Generated for HippoDraw Class Library by doxygen