Function File: fiboenco (num)

Returns the cell-array of encoded Fibonacci value from the column vectors 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 binary 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. http://en.wikipedia.org/wiki/Fibonacci_coding, UCI Data Compression Book, http://www.ics.uci.edu/~dan/pubs/DC-Sec3.html, (accessed October 2006)

fiboenco (10)
    ⇒ {[ 0 1 0 0 1 1]}
fiboenco (1:4)
    ⇒ {[1 1], [0 1 1], [0 0 1 1], [1 0 1 1]}

See also: fibodeco.

Package: communications