optic.comm.modulation.grayCode

grayCode(n)

Gray code generator.

Parameters:

n (int) – length of the codeword in bits.

Returns:

code – list of binary strings of the gray code.

Return type:

list