Learn R Programming

timma (version 1.1.0)

graycode3: Gray code function for matrix indexes

Description

A function to generate gray code used for matrix row and column names

Usage

graycode3(m)

Arguments

m
an integer to specify the number of bits

Value

  • a list of the following components:
  • gc_rowbinary gray code as row names of the predicted sensitivity matrix
  • gc_colbinary gray code as column names of the predicted sensitivity matrix
  • dec_rowdecimal gray code as row names of the predicted sensitivity matrix
  • dec_coldecimal gray code as column names of the predicted sensitivity matrix

Examples

Run this code
names<-graycode3(3)

Run the code above in your browser using DataLab