mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
skip PAPR reduction on S&C symbol
This commit is contained in:
parent
7c7ed0ffd7
commit
c81f3a15f9
1 changed files with 4 additions and 3 deletions
|
|
@ -92,11 +92,12 @@ struct Encoder
|
|||
else
|
||||
temp[bin(i)] = 0;
|
||||
}
|
||||
void symbol()
|
||||
void symbol(bool papr_reduction = true)
|
||||
{
|
||||
for (int i = 0; i < symbol_len; ++i)
|
||||
temp[i] = fdom[i];
|
||||
improve_papr();
|
||||
if (papr_reduction)
|
||||
improve_papr();
|
||||
bwd(tdom, temp);
|
||||
for (int i = 0; i < symbol_len; ++i)
|
||||
tdom[i] /= std::sqrt(value(8*symbol_len));
|
||||
|
|
@ -143,7 +144,7 @@ struct Encoder
|
|||
fdom[bin(2*i+mls0_off)] = nrz(seq0());
|
||||
for (int i = 0; i < mls0_len; ++i)
|
||||
fdom[bin(2*i+mls0_off)] *= fdom[bin(2*(i-1)+mls0_off)];
|
||||
symbol();
|
||||
symbol(false);
|
||||
}
|
||||
void meta_data(uint64_t md)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue