mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
abort search if PAPR is better than 7 dB
This commit is contained in:
parent
b3b8a2703c
commit
e5302188f2
1 changed files with 3 additions and 0 deletions
|
|
@ -198,6 +198,8 @@ struct Encoder : public Common
|
|||
papr[symbol_number] = best_papr;
|
||||
for (int i = 0; i < symbol_len; ++i)
|
||||
tdom[i] = test[i];
|
||||
if (test_papr < 5)
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -208,6 +210,7 @@ struct Encoder : public Common
|
|||
}
|
||||
}
|
||||
}
|
||||
end:
|
||||
clipping_and_filtering(scale);
|
||||
if (symbol_number != -1) {
|
||||
for (int i = 0; i < guard_len; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue