mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
limit precision
This commit is contained in:
parent
9c29a0a08d
commit
6150c538b4
1 changed files with 2 additions and 2 deletions
|
|
@ -234,8 +234,8 @@ struct Decoder : Common
|
|||
np += norm(error);
|
||||
}
|
||||
value precision = sp / np;
|
||||
value snr = DSP::decibel(precision);
|
||||
std::cerr << " " << snr;
|
||||
std::cerr << " " << DSP::decibel(precision);
|
||||
precision = std::min(precision, value(127));
|
||||
for (int i = 0; i < tone_count; ++i) {
|
||||
if (i % block_length == pilot_off)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue