diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-01-05 01:51:52 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-01-05 01:51:52 +0000 |
commit | b2c2d2a42e5d9e7b104ecebe41c89c701ad49923 (patch) | |
tree | ee3e5e99dd2b3b1445304841b44cc392729b2648 /misc | |
parent | cc717cde6e35240b3dc5492fefd5864295b7ff40 (diff) | |
download | opt-utilities-b2c2d2a42e5d9e7b104ecebe41c89c701ad49923.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@7 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bootstrap.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/misc/bootstrap.hpp b/misc/bootstrap.hpp index 0e58efa..3ee53b1 100644 --- a/misc/bootstrap.hpp +++ b/misc/bootstrap.hpp @@ -36,6 +36,11 @@ namespace opt_utilities :p_fitter(NULL) {} + ~bootstrap() + { + reset(); + } + void set_fitter(fitter<Ty,Tx,Tp,Ts,Tstr>& pf) { param_pool.clear(); @@ -44,7 +49,14 @@ namespace opt_utilities origin_param=pf.get_all_params(); } - + void reset() + { + if(p_fitter!=NULL) + { + p_fitter->load_data(origin_data_set); + p_fitter->set_param_value(origin_param); + } + } void sample(int n) { |