mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
do ML decoding if K <= 6 and Chase decoding otherwise
This commit is contained in:
parent
f83c785867
commit
fd2cdb4d58
1 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Chase algorithm
|
// Chase algorithm
|
||||||
if (1) {
|
if (K > 6) {
|
||||||
const int num = 4;
|
const int num = 4;
|
||||||
int worst[num] = { 0 };
|
int worst[num] = { 0 };
|
||||||
for (int i = 0; i < N; ++i) {
|
for (int i = 0; i < N; ++i) {
|
||||||
|
|
@ -126,7 +126,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// maximum likelihood
|
// maximum likelihood
|
||||||
if (0) {
|
if (K <= 6) {
|
||||||
for (int msg = 0; msg < W; ++msg) {
|
for (int msg = 0; msg < W; ++msg) {
|
||||||
int enc = (msg << P) | par[msg];
|
int enc = (msg << P) | par[msg];
|
||||||
if (enc == word)
|
if (enc == word)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue