aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-25 17:05:46 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-25 17:05:46 +0000
commitac1767770e64d0afb731be29345e9acd0a06387d (patch)
treebbd3b846008dd649e9eb8a961719d6b135a30eca /interface
parent7c0296b99989ac0e177a3e07e2aa40e8eb96f50c (diff)
downloadopt-utilities-ac1767770e64d0afb731be29345e9acd0a06387d.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@167 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'interface')
-rw-r--r--interface/perform_fit.hpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/interface/perform_fit.hpp b/interface/perform_fit.hpp
index 5ae4e6d..3b1394e 100644
--- a/interface/perform_fit.hpp
+++ b/interface/perform_fit.hpp
@@ -1,3 +1,7 @@
+#ifndef PERFORM_FIT_HPP
+#define PERFORM_FIT_HPP
+
+/*
#include <statistics/chisq.hpp>
#include <statistics/cstat.hpp>
#include <data_sets/default_data_set.hpp>
@@ -14,6 +18,8 @@
#include <models/poly1d.hpp>
#include <models/pl1d.hpp>
#include <models/models.hpp>
+*/
+#include <interface/type_depository.hpp>
namespace opt_utilities
{
@@ -23,20 +29,23 @@ namespace opt_utilities
void perform_fit(const char* model_name,
const char* method_name,
const char* statistic_name,
- const datat_set<Ty,Tx>& ds,
+ 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(statistic_name);
+ 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(method_name);
+ 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(model_name);
+ const model<Ty,Tx,Tp,Tstr>* pmo=get_model<Ty,Tx,Tp,Tstr>(model_name);
fit.set_model(*pmo);
fit.fit();
}
}
+
+#endif
+