Review at  https://gerrit.osmocom.org/2140

CommonLibs: Print soft bits with less confidence to console when printing a 
soft vector.

We use other symbols to show that these bits has less confidence:
o and . for 0 with less confidence
| and ' for 1 with less confidence

Change-Id: I747a17568ee48f1f3163e8dfab2e450af85e6435
---
M CommonLibs/BitVector.cpp
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/40/2140/1

diff --git a/CommonLibs/BitVector.cpp b/CommonLibs/BitVector.cpp
index 7487834..8389237 100644
--- a/CommonLibs/BitVector.cpp
+++ b/CommonLibs/BitVector.cpp
@@ -546,7 +546,11 @@
 {
        for (size_t i=0; i<sv.size(); i++) {
                if (sv[i]<0.25) os << "0";
+               else if (sv[i]<0.4) os << "o";
+               else if (sv[i]<0.5) os << ".";
                else if (sv[i]>0.75) os << "1";
+               else if (sv[i]>0.6) os << "|";
+               else if (sv[i]>0.5) os << "'";
                else os << "-";
        }
        return os;

-- 
To view, visit https://gerrit.osmocom.org/2140
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I747a17568ee48f1f3163e8dfab2e450af85e6435
Gerrit-PatchSet: 1
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Owner: Alexander Chemeris <alexander.cheme...@gmail.com>

Reply via email to