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:
Return type:

ndarray

Returns:

Scaled array, same shape as input.