[MERGED] osmo-trx[master]: CommonLibs: Print soft bits with less confidence to console ...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Alexander Chemeris gerrit-no-reply at lists.osmocom.org
Wed Mar 22 18:33:12 UTC 2017


Alexander Chemeris has submitted this change and it was merged.

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


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(-)

Approvals:
  Tom Tsou: Looks good to me, approved
  Max: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: I747a17568ee48f1f3163e8dfab2e450af85e6435
Gerrit-PatchSet: 3
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Owner: Alexander Chemeris <Alexander.Chemeris at gmail.com>
Gerrit-Reviewer: Alexander Chemeris <Alexander.Chemeris at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Tom Tsou <tom at tsou.cc>



More information about the gerrit-log mailing list