From 8f47a51d4c91a3303982b6cc2fa0d76cbd392a37 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Fri, 24 May 2019 11:34:08 -0400 Subject: 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. --- src/fit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit