veeresht / CommPy

Digital Communication with Python
http://veeresht.github.com/CommPy
BSD 3-Clause "New" or "Revised" License
538 stars 176 forks source link

Add power of 2 check to QAM #123

Open dsgibbons opened 1 year ago

dsgibbons commented 1 year ago

QAM currently only requires that the square root of the constellation size is an integer at initialization. QAM also requires that the constellation size be a power of 2. This PR adds a power of 2 check at QAM initialization.