comnum.papr_db_blocks#
- comnum.papr_db_blocks(x, block_len)#
The PAPR of every block of
block_lensamples (a tail shorter than a block is not a block).- Parameters:
x (array_like) – the samples.
block_len (int) – the length of a block.
- Returns:
the PAPR of every block (dB).
- Return type:
- Raises:
ValueError – for a block length of zero.
Examples
>>> import comnum >>> comnum.papr_db_blocks([1, 1, 1, 3, 2, 2, 2, 2], 4).round(4).tolist() [4.7712, 0.0]