mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
stop papr reduction if goal is reached
This commit is contained in:
parent
d3a37c9e83
commit
c851ed2a5a
1 changed files with 2 additions and 0 deletions
|
|
@ -89,6 +89,8 @@ struct Encoder
|
|||
if (norm(tdom[peak]) < norm(tdom[i]))
|
||||
peak = i;
|
||||
cmplx orig = tdom[peak];
|
||||
if (norm(orig) <= value(1))
|
||||
break;
|
||||
for (int i = 0; i < peak; ++i)
|
||||
tdom[i] -= orig * kern[symbol_len-peak+i];
|
||||
for (int i = peak; i < symbol_len; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue