From 6b405dfa254e911494c7a75d6f458d1a59f77888 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Thu, 27 Jan 2011 07:21:41 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@168 ed2142bd-67ad-457f-ba7c-d818d4011675 --- interface/perform_fit.hpp | 51 ----------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 interface/perform_fit.hpp (limited to 'interface') 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 -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -*/ -#include - -namespace opt_utilities -{ - - template - void perform_fit(const char* model_name, - const char* method_name, - const char* statistic_name, - const data_set& ds, - const char* froze_parameters - ) - { - fitter fit; - fit.load_data(ds); - const statistic* pstat=get_statistic(statistic_name); - fit.set_statistic(*pstat); - const opt_method* popm=get_opt_method(method_name); - fit.set_opt_method(*popm); - const model* pmo=get_model(model_name); - fit.set_model(*pmo); - fit.fit(); - } - - -} - -#endif - -- cgit v1.2.2