aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_fitter.cpp
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2010-02-08 09:23:14 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2010-02-08 09:23:14 +0000
commitdb1d374b7a24b8f3f74e17d706704d93f1e66d90 (patch)
treef6043b9df2ebfca0b4fea721e14d861785e985a5 /test/test_fitter.cpp
parent435b4484e00b1ac3b6ee5e87b81f5b8af4f1e653 (diff)
downloadopt-utilities-db1d374b7a24b8f3f74e17d706704d93f1e66d90.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@110 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'test/test_fitter.cpp')
-rw-r--r--test/test_fitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_fitter.cpp b/test/test_fitter.cpp
index 5e5b139..226d4ce 100644
--- a/test/test_fitter.cpp
+++ b/test/test_fitter.cpp
@@ -1,4 +1,5 @@
#include <core/fitter.hpp>
+#include <misc/bootstrap.hpp>
#include <methods/powell/powell_method.hpp>
#include <statistics/chisq.hpp>
#include <models/nbeta1d.hpp>
@@ -36,4 +37,7 @@ int main(int argc,char* argv[])
{
cout<<f.get_param_info(i).get_name()<<"="<<f.get_param_info(i).get_value()<<endl;
}
+ bootstrap<double,double,vector<double>,double,std::string> bst;
+ bst.set_fitter(f);
+ bst.sample(1000);
}