1
0
Fork 0
mirror of https://github.com/hb9fxq/gr-digitalhf synced 2024-12-22 07:09:59 +00:00

fixed wrong sign

This commit is contained in:
Christoph Mayer 2019-10-11 13:26:05 +02:00
parent d5a5584271
commit 71613080e5

View file

@ -32,7 +32,7 @@ public:
: _table() { : _table() {
for (int i=0; i<N; ++i) { // llr -> probability(1) for (int i=0; i<N; ++i) { // llr -> probability(1)
float const x = -7.0f + 14.0f*float(i)/float(N-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() {} virtual ~llr_to_prob() {}