Gray2Bin {xegaGaGene}R Documentation

Map Gray code to binary.

Description

Map Gray code to binary.

Usage

Gray2Bin(x)

Arguments

x

Gray code (boolean vector).

Details

Start with the highest order bit, and r[k-i]<- xor(n[k], n[k-1]).

Value

Binary code (boolean vector).

References

Gray, Frank (1953): Pulse Code Communication. US Patent 2 632 058.

Examples

 Gray2Bin(c(1, 0, 0, 0))
 Gray2Bin(c(1, 1, 1, 1))

[Package xegaGaGene version 1.0.0.1 Index]