aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-01-04 16:21:12 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-01-04 16:21:12 +0000
commit61ab260e41a922fafe3379aa56d8076ee0aac786 (patch)
treea8f498cde82f13300c844c300ec8ee797c8944e1
parenta0453ea575e4e4aed87004d2587bf9b95c10f1a9 (diff)
downloadopt-utilities-61ab260e41a922fafe3379aa56d8076ee0aac786.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@5 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--misc/bootstrap.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/bootstrap.hpp b/misc/bootstrap.hpp
index b46748d..bdee0b8 100644
--- a/misc/bootstrap.hpp
+++ b/misc/bootstrap.hpp
@@ -10,7 +10,7 @@
using std::cout;
namespace opt_utilities
{
- template <typename Ty,typename Tx,typename Tp>
+ template <typename Ty,typename Tx,typename Tp,typename Ts,typename Tstr=std::string>
class bootstrap
{
private:
@@ -29,14 +29,14 @@ namespace opt_utilities
std::vector<Tp> param_pool;
default_data_set<Ty,Tx> current_data_set;
default_data_set<Ty,Tx> origin_data_set;
- fitter<Ty,Tx,Tp>* p_fitter;
+ fitter<Ty,Tx,Tp,Ts,Tstr>* p_fitter;
Tp origin_param;
public:
bootstrap()
:p_fitter(NULL)
{}
- void set_fitter(fitter<Ty,Tx,Tp>& pf)
+ void set_fitter(fitter<Ty,Tx,Tp,Ts,Tstr>& pf)
{
param_pool.clear();
p_fitter=&pf;
@@ -92,7 +92,7 @@ namespace opt_utilities
public:
std::pair<typename element_type_trait<Tp>::element_type,typename element_type_trait<Tp>::element_type>
- interval(std::string param_name,double level)
+ interval(const Tstr& param_name,double level)
{
if(p_fitter==NULL)
{