Removed confusion relating to n and k

This commit is contained in:
Andreas Tsouchlos 2022-11-10 11:27:29 +01:00
parent df94fb33b6
commit 20049e55f0
2 changed files with 5 additions and 5 deletions

View File

@ -238,7 +238,7 @@ def get_systematic_H(G: np.array) -> np.array:
P = G[:, k:]
H = np.zeros(shape=(n - k, k + n - k))
H = np.zeros(shape=(n - k, n))
H[:, :k] = P.T
H[:, k:] = np.identity(n - k)

View File

@ -29,8 +29,8 @@ def test_decoder(n: int,
This function assumes the all-zeros assumption holds. Progress is printed to stdout.
:param n: Length of a codeword of the used code (n_cols of the H-matrix)
:param k: Length of a dataword of the used code (n_rows of the H-matrix)
:param n: Length of a codeword of the used code
:param k: Length of a dataword of the used code
:param decoder: Instance of the decoder to be tested
:param SNRs: List of SNRs for which the BER should be calculated
:param target_frame_errors: Number of frame errors after which to stop the simulation
@ -88,8 +88,8 @@ def test_decoders(n: int,
This function assumes the all-zeros assumption holds. Progress is printed to stdout.
:param n: Length of a codeword of the used code (n_cols of the H-matrix)
:param k: Length of a dataword of the used code (n_rows of the H-matrix)
:param n: Length of a codeword of the used code
:param k: Length of a dataword of the used code
:param decoders: List of decoder objects to be tested
:param SNRs: List of SNRs for which the BER should be calculated
:param target_frame_errors: Number of frame errors after which to stop the simulation