diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-09-18 18:44:51 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-09-18 18:44:51 -0500 |
commit | 471f3f17fcccfe0f274001d71c698a680b0442c9 (patch) | |
tree | 09663ba43c4fbc84b119bebe069e3e9b6055ca13 /src/fit.c | |
parent | 9641594eb070aaa4af399a311927b159e22e62b0 (diff) | |
download | sddm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |