mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
relax range requirement for soft inputs to full range
This commit is contained in:
parent
811024f128
commit
671b2f22ce
2 changed files with 5 additions and 3 deletions
|
|
@ -111,7 +111,7 @@ int main()
|
|||
double DIST = 2; // BPSK
|
||||
double fact = DIST / (sigma_noise * sigma_noise);
|
||||
for (int i = 0; i < N; ++i)
|
||||
noisy[i] = std::min<double>(std::max<double>(std::nearbyint(fact * symb[i]), -127), 127);
|
||||
noisy[i] = std::min<double>(std::max<double>(std::nearbyint(fact * symb[i]), -128), 127);
|
||||
|
||||
bool unique = osddec(decoded, noisy, genmat);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue