aboutsummaryrefslogtreecommitdiff
path: root/src/find_peaks.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-06-02 13:21:30 -0400
committertlatorre <tlatorre@uchicago.edu>2019-06-02 13:21:30 -0400
commit2f2cd1797190335468e956f4c286c6e4de27518e (patch)
treed3ae347dc8e59b6fa62a63a7a54493d48f947982 /src/find_peaks.h
parent02174afc5f27a6b255762f52b7e30af41941be0d (diff)
downloadsddm-2f2cd1797190335468e956f4c286c6e4de27518e.tar.gz
sddm-2f2cd1797190335468e956f4c286c6e4de27518e.tar.bz2
sddm-2f2cd1797190335468e956f4c286c6e4de27518e.zip
update find_peaks() to only return unique peaks
This commit updates find_peaks() to only return peaks which are at least a certain number of degrees apart from each other. This is because I found that for many events the first few peaks would all be essentially the same direction and so the fit was taking a lot of time fitting essentially the same seed points. Since I now have to only try 3 peaks in order to get my grid jobs to run for less than a few hours it's necessary to make sure we aren't just fitting the same three directions for the "quick" minimization. I also updated the fit to only use a maximum of 3 seed directions.
Diffstat (limited to 'src/find_peaks.h')
-rw-r--r--src/find_peaks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/find_peaks.h b/src/find_peaks.h
index 8511af6..0219561 100644
--- a/src/find_peaks.h
+++ b/src/find_peaks.h
@@ -22,6 +22,6 @@
void find_peaks_array(double *x, size_t n, size_t m, size_t *imax, size_t *jmax, size_t *npeaks, size_t max_peaks, double threshold);
void get_hough_transform(event *ev, double *pos, double *x, double *y, size_t n, size_t m, double *result, double *last, size_t len);
-void find_peaks(event *ev, double *pos, size_t n, size_t m, double *peak_theta, double *peak_phi, size_t *npeaks, size_t max_peaks);
+void find_peaks(event *ev, double *pos, size_t n, size_t m, double *peak_theta, double *peak_phi, size_t *npeaks, size_t max_peaks, double delta);
#endif