Shrunk the peak search window from 100 to 10

No reason to look that far around for the peak of a ZC sequence correlation
main
David Protzman 2022-04-30 11:58:02 -04:00
rodzic b442f73baf
commit 60ea5e6f3f
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -145,7 +145,8 @@ function [zc_indices] = find_zc_indices_by_file(file_path, sample_rate, frequenc
% value. The goal here is to only end up with the best score for the starting point of each burst instead of having
% multiple starting points for each burst.
true_peaks = [];
search_window = 100;
search_window = 10;
for idx = 1:length(passing_scores)
% Calculate how far to the left and right to look for the highest peak
left_idx = passing_scores(idx) - (search_window / 2);