accommodate preamble symbol in PAPR computations

This commit is contained in:
Ahmet Inan 2025-07-18 07:19:13 +02:00
commit 049dfdb3fa
3 changed files with 5 additions and 5 deletions

View file

@ -312,8 +312,8 @@ struct Encoder : public Common
}
symbol(j);
}
DSP::quick_sort(papr, symbol_count);
std::cerr << "PAPR (dB): " << DSP::decibel(papr[0]) << " .. " << DSP::decibel(papr[symbol_count/2]) << " .. " << DSP::decibel(papr[symbol_count-1]) << std::endl;
DSP::quick_sort(papr, symbol_count + 1);
std::cerr << "PAPR (dB): " << DSP::decibel(papr[0]) << " .. " << DSP::decibel(papr[symbol_count/2]) << " .. " << DSP::decibel(papr[symbol_count]) << std::endl;
}
finish();
}