6.7.12. sliding_window

sliding_window(xy, dx_window)[source]

Returns a sliding window (of width dx) over data from the iterable.

Parameters:
  • xy (list[(float, float) | list[float]]) – X and Y values.
  • dx_window (float) – dX window.
Returns:

Data (x & y) inside the time window.

Return type:

generator