aboutsummaryrefslogtreecommitdiff
path: root/src/fit.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-08-31 11:57:41 -0500
committertlatorre <tlatorre@uchicago.edu>2018-08-31 11:57:41 -0500
commitb6e99d74e6e3f4b9cb7e6660a8649b226cf90a21 (patch)
tree5d48fafe362b516393b5a7ecbebacc4a4ed67eae /src/fit.c
parent7b7d0182d316d4ee2ec664b28d7da23e0210f3c3 (diff)
downloadsddm-b6e99d74e6e3f4b9cb7e6660a8649b226cf90a21.tar.gz
sddm-b6e99d74e6e3f4b9cb7e6660a8649b226cf90a21.tar.bz2
sddm-b6e99d74e6e3f4b9cb7e6660a8649b226cf90a21.zip
update likelihood check to 1e-5 since that's what we pass to nlopt
Diffstat (limited to 'src/fit.c')
-rw-r--r--src/fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fit.c b/src/fit.c
index a8af643..8b17062 100644
--- a/src/fit.c
+++ b/src/fit.c
@@ -128,7 +128,7 @@ int fit_event(event *ev, double *xopt, double *fmin)
do {
*fmin = fval;
rv = nlopt_optimize(opt,x,&fval);
- } while (fabs(fval-*fmin) > 1e-9);
+ } while (fabs(fval-*fmin) > 1e-5);
memcpy(xopt,x,sizeof(x));