pyFDN.downsample_minmax#
- pyFDN.downsample_minmax(x, y, *, max_points=10000)[source]#
Downsample a line while preserving local minima and maxima.
This is intended for dense time-domain traces such as impulse responses, where naive stride decimation can miss narrow peaks. The returned samples are sorted by their original order, include the first and last sample, and use at most
max_pointspoints for long inputs.