- property galois.ReedSolomon.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 \(\textrm{RS}(15, 9)\) code over \(\mathrm{GF}(2^4)\).
In [1]: rs = galois.ReedSolomon(15, 9); rs Out[1]: <Reed-Solomon Code: [15, 9, 7] over GF(2^4)> In [2]: rs.t Out[2]: 3
Construct a \(\textrm{RS}(26, 18)\) code over \(\mathrm{GF}(3^3)\).
In [3]: rs = galois.ReedSolomon(26, 18, field=galois.GF(3**3)); rs Out[3]: <Reed-Solomon Code: [26, 18, 9] over GF(3^3)> In [4]: rs.t Out[4]: 4