decode4int: Convert binary vectors to integer vectors
Description
The function decode4int converts each element in a given binary vector to a integer number.
Usage
decode4int(x, M, ...)
Arguments
x
A vector containing binary numbers
M
A vector containing the number of bits of each binary in the x.
…
Further arguments passed to or from other methods.
Value
A vector of integer for input binary vector
Details
This function converts each element in the binary vector passed with the x argument to an integer. The M argument refers to the number of bits of each binary in the x vector.