, startpoints, boxlength, offset=0, fx=<function mean>)

This function extracts boxcar windows from an array. Such a boxcar is defined by a starting point and the size of the window along the first axis of the array (boxlength). Afterwards a customizable function is applied to each boxcar individually (Default: averaging).

  • data (array) – An array with an arbitrary number of dimensions.
  • startpoints (sequence) – Boxcar startpoints as index along the first array axis
  • boxlength (int) – Length of the boxcar window in #array elements
  • offset (int) – Optional offset between the configured starting point and the actual begining of the boxcar window.
Return type:

array (len(startpoints) x data.shape[1:])