mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +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
|
||||
if (1) {
|
||||
if (K > 6) {
|
||||
const int num = 4;
|
||||
int worst[num] = { 0 };
|
||||
for (int i = 0; i < N; ++i) {
|
||||
|
|
@ -126,7 +126,7 @@ public:
|
|||
}
|
||||
}
|
||||
// maximum likelihood
|
||||
if (0) {
|
||||
if (K <= 6) {
|
||||
for (int msg = 0; msg < W; ++msg) {
|
||||
int enc = (msg << P) | par[msg];
|
||||
if (enc == word)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue