From a820e3bd3c87127755b92a34cc234777502fc282 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Tue, 18 Sep 2012 05:47:12 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@245 ed2142bd-67ad-457f-ba7c-d818d4011675 --- misc/bootstrap.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/bootstrap.hpp b/misc/bootstrap.hpp index 6059917..cc647ef 100644 --- a/misc/bootstrap.hpp +++ b/misc/bootstrap.hpp @@ -15,6 +15,7 @@ #include #include #include +#include #include using std::cerr; namespace opt_utilities @@ -27,7 +28,7 @@ namespace opt_utilities { y=(rand()/(Ty)RAND_MAX-(Ty).5)*(10*y_err)+y0; } - while(rand()/(Ty)RAND_MAX>exp(-(y-y0)*(y-y0)/(y_err*y_err))); + while(rand()/(Ty)RAND_MAX>std::exp(-(y-y0)*(y-y0)/(y_err*y_err))); return y; } -- cgit v1.2.2