6.7.8. median_filter

median_filter(x, y, dx_window, filter=<function median_high>)[source]

Calculates the moving median-high of y values over a constant dx.

Parameters:
  • x (Iterable) – x data.
  • y (Iterable) – y data.
  • dx_window (float) – dx window.
  • filter (callable) – Filter function.
Returns:

Moving median-high of y values over a constant dx.

Return type:

numpy.array