aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-05-24 11:34:08 -0400
committertlatorre <tlatorre@uchicago.edu>2019-05-24 11:34:08 -0400
commit8f47a51d4c91a3303982b6cc2fa0d76cbd392a37 (patch)
tree8508126e523aadb9def32a9085b3be371cef9cea /src
parent2cdd60cb9d723a978ac6698cc999710116e052b5 (diff)
downloadsddm-8f47a51d4c91a3303982b6cc2fa0d76cbd392a37.tar.gz
sddm-8f47a51d4c91a3303982b6cc2fa0d76cbd392a37.tar.bz2
sddm-8f47a51d4c91a3303982b6cc2fa0d76cbd392a37.zip
change MAX_NPEAKS to 5
I probably need to spend some time to optimize this along with the algorithm for guessing the peaks, but for now I am just lowering this from 10 -> 5 because with 10 the number of quick minimizations for 3 particles is too big and so the fits take way too long.
Diffstat (limited to 'src')
-rw-r--r--src/fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fit.c b/src/fit.c
index f070792..9d6d781 100644
--- a/src/fit.c
+++ b/src/fit.c
@@ -47,7 +47,7 @@
/* Maximum number of fit parameters. Should be at least 4 + 3*MAX_VERTICES. */
#define MAX_PARS 100
/* Maximum number of peaks to search for in Hough transform. */
-#define MAX_NPEAKS 10
+#define MAX_NPEAKS 5
/* Maximum kinetic energy for any particle. */
#define MAX_ENERGY 10000