mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-07 00:12:32 -04:00
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:
parent
3c3a84f7c9
commit
334bb67208
@ -395,11 +395,11 @@ void ldpc_decode_ ( double lratio[], char decoded[], int *max_iterations, int *n
|
|||||||
for (itry=0; itry< *max_dither; itry++) {
|
for (itry=0; itry< *max_dither; itry++) {
|
||||||
for (i=0; i<N; i++) {
|
for (i=0; i<N; i++) {
|
||||||
if( itry == 0 ) {
|
if( itry == 0 ) {
|
||||||
fac=1.0;
|
fac=0.0;
|
||||||
} else {
|
} else {
|
||||||
fac=1.0+0.8*(rand()%1024-512)/512.0;
|
fac=(rand()%1024-512)/512.0;
|
||||||
}
|
}
|
||||||
lr[i]=lratio[i]*fac;
|
lr[i]=lratio[i]*exp(fac);
|
||||||
}
|
}
|
||||||
*niterations = prprp_decode ( H, lr, dblk, pchk, bprb );
|
*niterations = prprp_decode ( H, lr, dblk, pchk, bprb );
|
||||||
valid = check( H, dblk, pchk )==0;
|
valid = check( H, dblk, pchk )==0;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
3
|
3
|
||||||
2 2 9
|
2 3 9
|
||||||
0.491281 0.335305 0.173414
|
0.491281 0.335305 0.173414
|
||||||
|
Loading…
x
Reference in New Issue
Block a user