- property galois.BCH.t : int
The error-correcting capability \(t\) of the code.
Notes¶
The code can correct \(t\) symbol errors in a codeword.
\[t = \bigg\lfloor \frac{d - 1}{2} \bigg\rfloor\]Examples¶
Construct a binary \(\textrm{BCH}(15, 7)\) code.
In [1]: bch = galois.BCH(15, 7); bch Out[1]: <BCH Code: [15, 7, 5] over GF(2)> In [2]: bch.t Out[2]: 2
Construct a \(\textrm{BCH}(26, 14)\) code over \(\mathrm{GF}(3)\).
In [3]: bch = galois.BCH(26, 14, field=galois.GF(3)); bch Out[3]: <BCH Code: [26, 14, 7] over GF(3)> In [4]: bch.t Out[4]: 3