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

Is d_c > d_v or d_c >= d_v ? #20

Open ovgeorge opened 3 years ago

ovgeorge commented 3 years ago

From the https://github.com/hichamjanati/pyldpc/blob/master/pyldpc/code.py

 d_c: int, Number of bits in the same parity-check equation. d_c Must be
        greater or equal to d_v and must divide n.

and then:

    if d_c <= d_v:
        raise ValueError("""d_c must be greater than d_v.""")

So what version is correct?