mirror of
https://github.com/hb9fxq/gr-digitalhf
synced 2024-12-22 15:10:00 +00:00
fixed wrong sign
This commit is contained in:
parent
d5a5584271
commit
71613080e5
|
@ -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() {}
|
||||||
|
|
Loading…
Reference in a new issue