gray2bin {adana} | R Documentation |
The function gray2bin converts gray coded integer to a binary coded number.
gray2bin(gray)
gray |
A gray coded number. |
The gray2bin function works as a compliment of the bin2gray function.
Returns the binary coded integer equivalent of the input number.
Zeynel Cebeci & Erkut Tekeli
gray = c(1,1,1,0)
gray2bin(gray) # returns 1011
gray = c(1,1,1,1)
gray2bin(gray) # returns 1010