Home > freetb4matlab > info-theory > arithmetic_decode.m

arithmetic_decode

PURPOSE ^

%

SYNOPSIS ^

function message=arithmetic_decode(tag,problist,tolerance)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} arithmetic_decode (@var{tag_message}, @var{symbol_probabilites_list})
%
% Computes the message from arithmetic code given  with symbol
% probabilities. The arithmetic decoding procedure assumes
% that @var{message} is a list of numbers and the symbol probabilities
% correspond to the index. The message is returned. For example
%
% @example
% @group
%          symbols=[1,2,3,4]; sym_prob=[0.5 0.25 0.15 0.10];
%          message=[1, 1, 2, 3, 4];
%          arithmetic_encode(message,sym_prob) ans=0.18078
%          arithmetic_decode(0.18078,sym_prob) ans=[1 1 2 3 4];
% @end group
% @end example
% @end deftypefn
% @seealso{arithmetic_encode}

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003