MovingMedian
MovingMedian[list, r] gives the moving median of list, computed using spans of r elements.
Examples
MovingMedian[{1, 2, 3, 4, 5, 6, 7}, 3]
(* {2, 3, 4, 5, 6} *)MovingMedian[{1, 5, 2, 8, 3}, 3]
(* {2, 5, 3} *)Please visit the official Wolfram Language Reference for more details.