Learn R Programming

timma (version 1.2.1)

graycode2: Graycode Function

Description

A function to generate decimal graycode

Usage

graycode2(a)

Arguments

a
the number of targets

Value

A list contains the following components:
rows
the number of rows
cols
the number of columns
dec
the decimal graycode results

References

Dah jyh Guan. (Scientific Note) Generalized Gray Codes with Applications. 1998

Examples

Run this code
code<-graycode2(5)

Run the code above in your browser using DataLab