diff --git a/lib/llr_to_prob.h b/lib/llr_to_prob.h index 27ff300..7229fdb 100644 --- a/lib/llr_to_prob.h +++ b/lib/llr_to_prob.h @@ -32,7 +32,7 @@ public: : _table() { for (int i=0; i probability(1) float const x = -7.0f + 14.0f*float(i)/float(N-1); - _table[i] = std::uint8_t(0.5f + 255.0f/(1.0f + std::exp(x))); + _table[i] = std::uint8_t(0.5f + 255.0f/(1.0f + std::exp(-x))); } } virtual ~llr_to_prob() {}