pyFDN.peak_normalize#

pyFDN.peak_normalize(x, target_peak=1.0)[source]#

Scale array so the maximum absolute value equals target_peak.

If the array is all zeros, it is returned unchanged.

Parameters:
  • x (ArrayLike) – Input signal (any shape).

  • target_peak (float) – Desired peak magnitude (default 1.0).

Return type:

ndarray

Returns:

Scaled array, same shape as input.