From 71613080e54dbfcb94eb401233f7e0018caf49c9 Mon Sep 17 00:00:00 2001 From: Christoph Mayer Date: Fri, 11 Oct 2019 13:26:05 +0200 Subject: [PATCH] fixed wrong sign --- lib/llr_to_prob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {}