aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/bootstrap.hpp7
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: