Description: LDPC-PEG algorithm constructs H matrix source code program, matlab source code program clear all;
CLC;
% Input coding parameters, m: number of check nodes, n: number of variable nodes (note that bit rate R is not necessarily 1/2)
% Constructing LDPC Check Matrix with Arbitrary Bit Rate
M = input ('The number of check nodes:');
N = input ('The number of variable nodes:');
H = zeros (m, n);
% Given variable nodal degree distribution sequence DV = 0.38354*x+0.04237*x^2+0.57409*x^3
% In order to get better performance, the density evolution theory is used to select the degree distribution sequence.
DV = inline ('0.38354 * x + 0.04237 * X. ^ 2 + 0.57409 * X. ^ 3','x');
% Calculate the number of nodes per degree distribution
INDV = quadl (dv, 0, 1);
A2 = round (n* (0.38354/2/indv));
A3 = round (n* (0.04273/3/indv);
DS (1:a2) =2;
DS (a2 + 1: A3 + a2) = 3;
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
LDPC-PEG算法构造H矩阵\code\main.m | 2732 | 2019-05-25
|
LDPC-PEG算法构造H矩阵\code | 0 | 2019-05-25
|
LDPC-PEG算法构造H矩阵 | 0 | 2019-05-25 |