Learn R Programming

timma (version 1.1.0)

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:
  • rowsthe number of rows
  • colsthe number of columns
  • decthe 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