commpy.channelcoding.ldpc_bp_decode¶
-
ldpc_bp_decode
(llr_vec, ldpc_code_params, decoder_algorithm, n_iters)¶ LDPC Decoder using Belief Propagation (BP).
Parameters: - llr_vec (1D array of float) – Received codeword LLR values from the channel.
- ldpc_code_params (dictionary) – Parameters of the LDPC code.
- decoder_algorithm (string) – Specify the decoder algorithm type. SPA for Sum-Product Algorithm MSA for Min-Sum Algorithm
- n_iters (int) – Max. number of iterations of decoding to be done.
Returns: - dec_word (1D array of 0’s and 1’s) – The codeword after decoding.
- out_llrs (1D array of float) – LLR values corresponding to the decoded output.