Navigation

Operators and Keywords

Function List:

C++ API

Function File: unarydec (value)

This function decodes the unary encoded value. Useful if you are trying to perform golomb-rice coding value needs to be a number or row-vector. For example

           message = [5   4   4   1   1   1]
           coded = unaryenc(message)
                 ⇒ [62   30   30    2    2    2]
           unarydec(coded)
                 ⇒ [5   4   4   1   1   1]
See also: unaryenc