gray2bin {adana} | R Documentation |
Convert gray code to binary integer #1
Description
The function gray2bin converts gray coded integer to a binary coded number.
Usage
gray2bin(gray)
Arguments
gray |
A gray coded number. |
Details
The gray2bin function works as a compliment of the bin2gray function.
Value
Returns the binary coded integer equivalent of the input number.
Author(s)
Zeynel Cebeci & Erkut Tekeli
See Also
Examples
gray = c(1,1,1,0)
gray2bin(gray) # returns 1011
gray = c(1,1,1,1)
gray2bin(gray) # returns 1010
[Package adana version 1.1.0 Index]