aboutsummaryrefslogtreecommitdiff
path: root/src/fit.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-09-18 18:44:51 -0500
committertlatorre <tlatorre@uchicago.edu>2018-09-18 18:44:51 -0500
commit471f3f17fcccfe0f274001d71c698a680b0442c9 (patch)
tree09663ba43c4fbc84b119bebe069e3e9b6055ca13 /src/fit.c
parent9641594eb070aaa4af399a311927b159e22e62b0 (diff)
downloadsddm-471f3f17fcccfe0f274001d71c698a680b0442c9.tar.gz
sddm-471f3f17fcccfe0f274001d71c698a680b0442c9.tar.bz2
sddm-471f3f17fcccfe0f274001d71c698a680b0442c9.zip
stop fitting when the likelihood difference is less than 1e-2
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 339eeba..e29e375 100644
--- a/src/fit.c
+++ b/src/fit.c
@@ -5286,7 +5286,7 @@ int fit_event(event *ev, double *xopt, double *fmin)
nlopt_optimize(opt,x,&fval);
if (stop) goto end;
- } while (fval < *fmin && fabs(fval-*fmin) > 1e-5);
+ } while (fval < *fmin && fabs(fval-*fmin) > 1e-2);
if (fval < *fmin) {
*fmin = fval;