hichamjanati / pyldpc

Creation of LDPC codes & simulation of coding and decoding binary data. Applications to sound and image files.
BSD 3-Clause "New" or "Revised" License
121 stars 34 forks source link

Fix construction of parity-check matrices in make_ldpc #5

Closed hichamjanati closed 4 years ago

hichamjanati commented 4 years ago

This PR fixes a bug in the creation of parity-check matrices + improves doc + add a test on regularity of the Gallager code matrix H.

codecov[bot] commented 4 years ago

Codecov Report

Merging #5 into master will increase coverage by 1.08%. The diff coverage is 91.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
+ Coverage   86.33%   87.41%   +1.08%     
==========================================
  Files          13       14       +1     
  Lines         761      763       +2     
  Branches      136      136              
==========================================
+ Hits          657      667      +10     
+ Misses         50       45       -5     
+ Partials       54       51       -3
Impacted Files Coverage Δ
pyldpc/tests/test_audio.py 100% <100%> (ø) :arrow_up:
pyldpc/tests/test_image.py 100% <100%> (ø) :arrow_up:
pyldpc/tests/test_code.py 100% <100%> (ø)
pyldpc/code.py 92.5% <84.61%> (+9.16%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 109af9b...454cf35. Read the comment docs.