optic.comm.modulation.modulateGray
- modulateGray(bits, M, constType)
Modulate bit sequences to constellation symbol sequences (w/ Gray mapping).
- Parameters:
bits (array of ints) – sequence of data bits.
M (int) – order of the modulation format.
constType (string) – ‘qam’, ‘psk’, ‘apsk’, ‘pam’ or ‘ook’.
- Returns:
bits modulated to complex constellation symbols.
- Return type:
array of complex constellation symbols
References
[1] Proakis, J. G., & Salehi, M. Digital Communications (5th Edition). McGraw-Hill Education, 2008.