#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 datat_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(); } }