aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-27 07:21:41 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-27 07:21:41 +0000
commit6b405dfa254e911494c7a75d6f458d1a59f77888 (patch)
tree7705c9af08b9e642c6c9a25a253e75e4d0e2ffc1
parentac1767770e64d0afb731be29345e9acd0a06387d (diff)
downloadopt-utilities-6b405dfa254e911494c7a75d6f458d1a59f77888.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@168 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--interface/perform_fit.hpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/interface/perform_fit.hpp b/interface/perform_fit.hpp
deleted file mode 100644
index 3b1394e..0000000
--- a/interface/perform_fit.hpp
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef PERFORM_FIT_HPP
-#define PERFORM_FIT_HPP
-
-/*
-#include <statistics/chisq.hpp>
-#include <statistics/cstat.hpp>
-#include <data_sets/default_data_set.hpp>
-#include <core/fitter.hpp>
-#include <core/opt_traits.hpp>
-#include <core/freeze_param.hpp>
-#include <methods/powell/powell_method.hpp>
-#include <models/gauss1d.hpp>
-#include <models/bl1d.hpp>
-#include <models/bpl1d.hpp>
-#include <models/beta1d.hpp>
-#include <models/dbeta1d.hpp>
-#include <models/lin1d.hpp>
-#include <models/poly1d.hpp>
-#include <models/pl1d.hpp>
-#include <models/models.hpp>
-*/
-#include <interface/type_depository.hpp>
-
-namespace opt_utilities
-{
-
- template <typename Ty,typename Tx,typename Tp,typename Ts,
- typename Tstr>
- void perform_fit(const char* model_name,
- const char* method_name,
- const char* statistic_name,
- const data_set<Ty,Tx>& ds,
- const char* froze_parameters
- )
- {
- fitter<Ty,Tx,Tp,Ts,Tstr> fit;
- fit.load_data(ds);
- const statistic<Ty,Tx,Tp,Ts,Tstr>* pstat=get_statistic<Ty,Tx,Tp,Ts,Tstr>(statistic_name);
- fit.set_statistic(*pstat);
- const opt_method<Ts,Tp>* popm=get_opt_method<Ty,Tp>(method_name);
- fit.set_opt_method(*popm);
- const model<Ty,Tx,Tp,Tstr>* pmo=get_model<Ty,Tx,Tp,Tstr>(model_name);
- fit.set_model(*pmo);
- fit.fit();
- }
-
-
-}
-
-#endif
-