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 (Union[_Buffer, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], complex, bytes, str, _NestedSequence[complex | bytes | str]]) – Input signal (any shape). target_peak (float) – Desired peak magnitude (default 1.0). Return type: ndarray Returns: Scaled array, same shape as input.