comnum.papr_db#
- comnum.papr_db(x)#
The PAPR of a block of samples,
max |x|² / mean |x|².- Parameters:
x (array_like) – the samples.
- Returns:
the PAPR (dB).
- Return type:
- Raises:
ValueError – for an input that is not an array of numbers of the expected shape.
Examples
>>> import comnum >>> round(comnum.papr_db([1, 1, 1, 3]), 4) 4.7712