Home > freetb4matlab > comm > fibodeco.m

fibodeco

PURPOSE ^

%

SYNOPSIS ^

function num=fibodeco(code)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} { } fibodeco (@var{code})
% 
% Returns the decoded fibonacci value from the binary vectors @var{code}.
% Universal codes like fibonacci codes Have a useful synchronization property,
% only for 255 maximum value we have designed these routines. We assume
% user has partitioned the code into several unique segments based on
% the suffix property of unique strings '11' and we just decode the
% parts. Partitioning the stream is as simple as identifying the
% '11' pairs that occur, at the terminating ends. This system implements
% the standard binaary Fibonacci codes, which means that row vectors
% can only contain 0 or 1. Ref: @url{http://en.wikipedia.org/wiki/Fibonacci_coding}
% 
% @example
% @group
%     fibodeco(@{[0 1 0 0 1 1]@}) %decoded to 10
%     fibodeco(@{[1 1],[0 1 1],[0 0 1 1],[1 0 1 1]@}) %[1:4]
% @end group
% @end example
% @end deftypefn
% @seealso{fiboenco}

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003