% -*- texinfo -*- % @deftypefn {Function File} {} fiboenco (@var{num}) % % Returns the cell-array of encoded fibonacci value from the column vectors @var{num}. % 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 elements [1 1] and we just decode the % parts. Partitioning the stream is as simple as identifying the [1 1] % 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: http://en.wikipedia.org/wiki/Fibonacci_coding % Ugly O(k.N^2) encoder.Ref: Wikipedia article accessed March, 2006. % @url{http://en.wikipedia.org/wiki/Fibonacci_coding}, UCI Data Compression % Book, @url{http://www.ics.uci.edu/~dan/pubs/DC-Sec3.html}, (accessed % October 2006) % % @example % @group % fiboenco(10) %= code is @{[ 0 1 0 0 1 1]@} % fiboenco(1:4) %= code is @{[1 1],[0 1 1],[0 0 1 1],[1 0 1 1]@} % @end group % @end example % @end deftypefn % @seealso{fibodeco}