Merge pull request #81 from sp5wwp/master

Add H matrix
pull/82/head
Wojciech Kaczmarski 2021-10-23 18:35:25 +02:00 zatwierdzone przez GitHub
commit a57ea7bb0d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 17 dodań i 1 usunięć

Wyświetl plik

@ -152,7 +152,8 @@ meaning that the input data (message) is embedded in the codeword.
g =& x^{11} + x^{10} + x^6 + x^5 + x^4 + x^2 + 1
\end{align}
This is equivalent to 0xC75 in hexadecimal notation. The generating matrix *G* is described below.
This is equivalent to 0xC75 in hexadecimal notation. Both the generating matrix *G*
and parity check matrix *H* are shown below.
.. math::
:nowrap:
@ -171,6 +172,21 @@ This is equivalent to 0xC75 in hexadecimal notation. The generating matrix *G* i
0&0&0&0&0&0&0&0&0&1&0&0&1&0&1&0&1&0&0&1&0&1&1&1\\
0&0&0&0&0&0&0&0&0&0&1&0&1&0&0&1&0&0&1&1&1&1&1&0\\
0&0&0&0&0&0&0&0&0&0&0&1&1&0&0&0&1&1&1&0&1&0&1&1\\
\end{bmatrix}
\newline\newline
H = \begin{bmatrix} P^T | I_k \end{bmatrix} = & \begin{bmatrix}
1&0&1&0&0&1&0&0&1&1&1&1&1&0&0&0&0&0&0&0&0&0&0&0\\
1&1&1&1&0&1&1&0&1&0&0&0&0&1&0&0&0&0&0&0&0&0&0&0\\
0&1&1&1&1&0&1&1&0&1&0&0&0&0&1&0&0&0&0&0&0&0&0&0\\
0&0&1&1&1&1&0&1&1&0&1&0&0&0&0&1&0&0&0&0&0&0&0&0\\
0&0&0&1&1&1&1&0&1&1&0&1&0&0&0&0&1&0&0&0&0&0&0&0\\
1&0&1&0&1&0&1&1&1&0&0&1&0&0&0&0&0&1&0&0&0&0&0&0\\
1&1&1&1&0&0&0&1&0&0&1&1&0&0&0&0&0&0&1&0&0&0&0&0\\
1&1&0&1&1&1&0&0&0&1&1&0&0&0&0&0&0&0&0&1&0&0&0&0\\
0&1&1&0&1&1&1&0&0&0&1&1&0&0&0&0&0&0&0&0&1&0&0&0\\
1&0&0&1&0&0&1&1&1&1&1&0&0&0&0&0&0&0&0&0&0&1&0&0\\
0&1&0&0&1&0&0&1&1&1&1&1&0&0&0&0&0&0&0&0&0&0&1&0\\
1&1&0&0&0&1&1&1&0&1&0&1&0&0&0&0&0&0&0&0&0&0&0&1\\
\end{bmatrix}
\end{align}