Update to likelihood ratio dither approach.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6635 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Steven Franke 2016-04-23 17:33:13 +00:00
parent 3c3a84f7c9
commit 334bb67208
2 changed files with 5 additions and 5 deletions

View File

@ -395,11 +395,11 @@ void ldpc_decode_ ( double lratio[], char decoded[], int *max_iterations, int *n
for (itry=0; itry< *max_dither; itry++) {
for (i=0; i<N; i++) {
if( itry == 0 ) {
fac=1.0;
fac=0.0;
} else {
fac=1.0+0.8*(rand()%1024-512)/512.0;
}
lr[i]=lratio[i]*fac;
fac=(rand()%1024-512)/512.0;
}
lr[i]=lratio[i]*exp(fac);
}
*niterations = prprp_decode ( H, lr, dblk, pchk, bprb );
valid = check( H, dblk, pchk )==0;

View File

@ -1,3 +1,3 @@
3
2 2 9
2 3 9
0.491281 0.335305 0.173414