image thumbnail

Channel Noise Estimation Using Particle based Belief Propagation for LDPC decoding in AWGN and BSC

by

 

Channel Noise Estimation Using Particle based Belief Propagation for LDPC decoding in AWGN and BSC

getConnectionMap(numThreads, n, connectionRatio, numParticles)
% Authors:
% 
% Shuang Wang, Lijuan Cui and Samuel Cheng
% 
% Copyright:
% 
% Copyright ? 2007-2011 Shuang Wang
% 
% Questions:
% 
% For any questions, please contact me by shuangwang AT ou dot edu
%
% reference
%  L. Cui, S. Wang, S. Cheng, M. Yeary, "Adaptive Binary Slepian-Wolf Decoding using Particle Based Belief Propagation", Communications, IEEE Transactions on, to appear.
%  S. Wang, L. Cui, S. Cheng, Y. Zhai, M. Yeary, Q. Wu, "Noise Adaptive LDPC Decoding Using Particle Filtering," Communications, IEEE Transactions on, Vol 59. pp. 913 - 916, April 2011.
%
function [connectionMap, connectionMap_java] = getConnectionMap(numThreads, n, connectionRatio, numParticles)
    connectionMap = Arrays.reshapeArray2Cell(1:n, connectionRatio);
    pbpLength = numel(connectionMap);
    connectionMap_java = javaArray('javapbpformatlab.ConnectionMap', pbpLength);
    for i = 1:pbpLength
        connectionMap_java(i) = javapbpformatlab.ConnectionMap(numThreads, numParticles, (connectionMap{i}-1)); % -1 since java array starts from 0
    end
end

Contact us