sdr.peak_power(x: ArrayLike, axis: int | tuple[int, ...] | None = None, db: bool = False) float

Measures the peak power of a time-domain signal x[n].

Ppeak=max|x[n]|2

Parameters:
x: ArrayLike

The time-domain signal x[n] to measure.

axis: int | tuple[int, ...] | None = None

Axis or axes along which to compute the peak power. The default is None, which computes the peak power of the entire array.

db: bool = False

Indicates whether to return the result in decibels (dB).

Returns:

The peak power. If db=False, Ppeak is returned. If db=True, 10log10Ppeak is returned.