From 0c1f50351a0287252c4b0f7e9edbfb945481e6f7 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Tue, 13 Oct 2009 03:08:47 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@80 ed2142bd-67ad-457f-ba7c-d818d4011675 --- misc/bootstrap.hpp | 13 +++++++++---- misc/data_loaders.hpp | 6 +++--- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'misc') diff --git a/misc/bootstrap.hpp b/misc/bootstrap.hpp index bd1f4a3..f2ba525 100644 --- a/misc/bootstrap.hpp +++ b/misc/bootstrap.hpp @@ -13,7 +13,7 @@ #include #include #include -using std::cout; +using std::cerr; namespace opt_utilities { @@ -122,6 +122,11 @@ namespace opt_utilities { return param_pool.at(i); } + + int get_param_pool_size()const + { + return param_pool.size(); + } private: Tp sample() @@ -143,9 +148,9 @@ namespace opt_utilities param_pool.push_back(p_fitter->fit()); for(size_t i=0;i<(param_pool.back()).size();++i) { - cout<::element_type>::iterator> itv=equal_range(_tmp.begin(),_tmp.end(),origin_param[order]); int current_param_position=itv.second-_tmp.begin(); - std::cout<<_tmp.size()<::element_type, typename element_type_trait::element_type>( _tmp.at((int)((1-level)*current_param_position)), diff --git a/misc/data_loaders.hpp b/misc/data_loaders.hpp index 20405b1..ad23db6 100644 --- a/misc/data_loaders.hpp +++ b/misc/data_loaders.hpp @@ -66,7 +66,7 @@ namespace opt_utilities break; } data d(x,y,y_err,y_err,x_err,x_err); - ds.push_back(d); + ds.add_data(d); } //return ifs; } @@ -125,7 +125,7 @@ namespace opt_utilities break; } data d(x,y,y_err,y_err,x_err,x_err); - ds.push_back(d); + ds.add_data(d); } } @@ -186,7 +186,7 @@ namespace opt_utilities break; } data d(x,y,yl,yu,xl,xu); - ds.push_back(d); + ds.add_data(d); } } -- cgit v1.2.2