std::pair<double, double> find_peak(double *in, unsigned num_samples)
{
- double best_peak = in[0];
- unsigned best_bin = 0;
+ double best_peak = in[5];
+ unsigned best_bin = 5;
- for (unsigned i = 1; i < num_samples / 2 + 1; ++i) {
+ for (unsigned i = 6; i < num_samples / 2 + 1; ++i) {
if (in[i] > best_peak) {
best_peak = in[i];
best_bin = i;