new_xchk.m
来自「计算LDPC码理论性能的MATLAB程序,有例子说明,对通信系统设计很有帮助!」· M 代码 · 共 25 行
M
25 行
function y = new_xchk(ext, f_ext, num, mapping)% for some reason, "wrap" = normal log-likelihood ratio% and "flog" = log(tanh(x/2)), where x is the llr% excess = [ofl_pos ufl_pos ofl_neg ufl_neg][f_log_pos,f_log_neg,excess] = new_wrap2flog(ext, f_ext, mapping);p_zero = f_ext(round((ext(3)-1)/2 + 1))*ext(2);% n_log contains the new bins for the convolved functionn_log = [mapping(1)*num mapping(2) ((mapping(3)+1)*num - num + 1)];[f_n_log_pos,f_n_log_neg,p_result_zero] = new_fft_convolve_chk(f_log_pos, f_log_neg, num, n_log, excess, p_zero);[f_n_ext,ofl_pos,ofl_neg] = new_flog2wrap(n_log, f_n_log_pos, f_n_log_neg, ext, p_result_zero);% note: the overflows should be placed at the value corresponding to% 2*atanh(exp(-mapping(2)/2)), because this is the uppermost value that% can be represented using the quantization given by mappingf_n_ext = new_chk_overflow(f_n_ext,ofl_pos,ofl_neg,ext,mapping);y = f_n_ext;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?