matlab的vitdec,求viterbi decoding的matlab,

打字中,等下 再答: function out = sovadec( msg, llr, trl, win )

% SOVADEC is an implementation of the soft input soft output Viterbi

% algorithm. The algorithm can be called using

% DEC = SOVADEC( MSG, LLR, TRELLIS, WIN )

% where MSG is the soft input (codeword), LLR is a priori information

% per bit about the bits (log likelihood ratios), TRELLIS is the

% trellis structure describing the convolutional encoder used to

% encode the original information message.

%

% The output of the function is the vector containing the soft

% estimates of the originally encoded information. The implementation

% is able to perform decoding using any trellis structure compatibile

% with the standard Matlab POLY2TRELLIS function.

%

% WIN describes the size of the trellis buffer used to perform the

% Viterbi algorithm. Thus, the decoder estimates the best path through

% the trellis and searches back within this buffer at every decoding

% time instant.

% If WIN is omitted, the trellis of length N+1 (where N is the size

% of the decoded message) is used.

%

% For the estimation of the reliability information only the second

% best path (competitor) is used, even if there are more than two

% paths merging at a particular state.

%

% The output of the decoding algorithm is of the following form

% out = sign(inp) * log( P(inp=1|out) ) / log( P(inp=-1|out) )

%

% See also: POLY2TRELLIS, CONVENCO, VITDEC

%% (c) 2003 Adrian Bohdanowicz

%% $Id: sovadec.m,v 1.16 2003/06/15 14:57:29 adrian Exp $

enc = trellis2enc( trl );

if( enc.k == 1 )

out = sovadec_1N( msg, llr, trl, win ); % use 1/N optimized code (2x faster)

else

out = sovadec_KN( msg, llr, trl, win ); % uset K/N generic code

end

return;

function enc = trellis2enc( trl ),

% put the trellis structure into a more user friendly manner

enc.k = log2( trl.numInputSymbols ); % number of inputs

enc.n = l

再问: 大神,有QQ或者微信没有?交个朋友,多多交流

再答: 有QQ

再问: 我们加个QQ吧,240586862,帮帮我以后在viterbi的问题吧,我可以把我的所有金币都给你,太需要你的帮助了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值