diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-01-04 17:00:50 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-01-04 17:00:50 +0000 |
commit | cc717cde6e35240b3dc5492fefd5864295b7ff40 (patch) | |
tree | 490e235f3493f109eff0757bc4b8e85a011a429d /misc | |
parent | 61ab260e41a922fafe3379aa56d8076ee0aac786 (diff) | |
download | opt-utilities-cc717cde6e35240b3dc5492fefd5864295b7ff40.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@6 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bootstrap.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/bootstrap.hpp b/misc/bootstrap.hpp index bdee0b8..0e58efa 100644 --- a/misc/bootstrap.hpp +++ b/misc/bootstrap.hpp @@ -70,8 +70,12 @@ namespace opt_utilities } private: - void sample() + Tp sample() { + if(p_fitter==NULL) + { + throw fitter_unset(); + } current_data_set=default_data_set<Ty,Tx>(); for(int i=0;i<origin_data_set.size();++i) { @@ -88,6 +92,7 @@ namespace opt_utilities cout<<param_pool.back()[i]<<","; } std::cout<<std::endl; + return param_pool.back(); } public: |