fixed wrong sign

This commit is contained in:
Christoph Mayer 2019-10-11 13:26:05 +02:00
parent d5a5584271
commit 71613080e5
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public:
: _table() {
for (int i=0; i<N; ++i) { // llr -> 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() {}