From b3e9a3d2acc6be6648977957adc2ed17df925637 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sun, 12 Dec 2010 15:40:01 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@146 ed2142bd-67ad-457f-ba7c-d818d4011675 --- dynamical_fit/dynamical_fit.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'dynamical_fit') diff --git a/dynamical_fit/dynamical_fit.cpp b/dynamical_fit/dynamical_fit.cpp index 196df0d..23646f7 100644 --- a/dynamical_fit/dynamical_fit.cpp +++ b/dynamical_fit/dynamical_fit.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -22,8 +23,11 @@ int main(int argc,char* argv[]) } ifstream cfg_file(argv[1]); fitter,double,std::string> fit; + chisq,double,string> stat; + stat.verbose(true); fit.set_opt_method(powell_method >()); - fit.set_statistic(chisq,double,string>()); + // + fit.set_statistic(stat); std::string model_so_name; cfg_file>>model_so_name; cerr<<"loading model shared object "< >()); + fit.fit(); fit.fit(); vector p=fit.fit(); -- cgit v1.2.2