xoa.core.signal.rolling_range

Contents

xoa.core.signal.rolling_range#

xoa.core.signal.rolling_range(x, window)[source]#

Maximum minus minimum on a centred sliding window.

Parameters:
  • x (ndarray (nt, ...)) – Time first.

  • window (int) – Number of samples.

Returns:

ndarray, same shape as x – NaN where the window is incomplete (edges) or contains a NaN.