⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getgirth.m

📁 LDPC codes .Using the matlab.
💻 M
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function girth = GetGirth(checkMatrix_H)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% @author   Andreas Waadt, 13. November 2005
% @param     checkMatrix_H : the parity check matrix of the code
% @return   girth : the girth of checkMatrix_H
% This function calculates the girth of a Parity-Check-Matrix H
% (checkMatrix_H). That's the length of the shortest cyclic way 
% through the tanner graph of checkMatrix_H;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% checkMatrix_H = ParityCheckMatrixH()

sizeOfMatrix = size(checkMatrix_H);
% number of rows (check sums, check nodes)
j_rows = sizeOfMatrix(1);

girth = 10^16;
for start_node = 1:1:j_rows
    tmp_girth = CalcGirth(checkMatrix_H,start_node);
    if( tmp_girth < girth )
        girth = tmp_girth;
    end;
    if( girth <= 4 )
        break;
    end;
end;

%girth

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -