00001
00002
00003
00004 #ifndef FITYK__LMFIT__H__
00005 #define FITYK__LMFIT__H__
00006 #include "common.h"
00007 #include <vector>
00008 #include <map>
00009 #include <string>
00010 #include "fit.h"
00011
00012
00013 class LMfit : public Fit
00014 {
00015 public:
00016 LMfit(Ftk* F);
00017 ~LMfit();
00018 virtual void init();
00019 void autoiter();
00020 private:
00021 std::vector<realt> alpha, alpha_;
00022 std::vector<realt> beta, beta_;
00023 std::vector<realt> a;
00024 realt chi2, chi2_;
00025 double lambda;
00026
00027 bool do_iteration();
00028 };
00029
00030 #endif
00031