Skip to content
Permalink
Browse files
Merge pull request #9259 from Strum355/utf8-source
Fixed non-UTF8 chars in PeakFinder.cpp
  • Loading branch information
leoetlino committed Nov 19, 2020
2 parents 7e9a2dc + 4d26f6a commit c724447
Showing 1 changed file with 2 additions and 2 deletions.
@@ -64,7 +64,7 @@ int PeakFinder::findTop(const float *data, int peakpos) const

refvalue = data[peakpos];

// seek within ±10 points
// seek within ±10 points
start = peakpos - 10;
if (start < minPos) start = minPos;
end = peakpos + 10;
@@ -265,7 +265,7 @@ double PeakFinder::detectPeak(const float *data, int aminPos, int amaxPos)

// accept harmonic peak if
// (a) it is found
// (b) is within ±4% of the expected harmonic interval
// (b) is within ±4% of the expected harmonic interval
// (c) has at least half x-corr value of the max. peak

double diff = harmonic * peaktmp / highPeak;

0 comments on commit c724447

Please sign in to comment.