relax range requirement for soft inputs to full range

This commit is contained in:
Ahmet Inan 2020-08-07 08:13:08 +02:00
commit 671b2f22ce
2 changed files with 5 additions and 3 deletions

View file

@ -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);