MovingMap¶
Apply a function to a sliding window.
(With the literal Mean symbol, Wolfram evaluates the window numerically, so
real-valued input is used here to keep both engines in agreement.)
The window function may be a pure function.
A fourth argument pads the data on the left,
so every input position gets a full window
and the result keeps the input's length.
"Fixed" repeats the first element,
"Periodic" wraps around from the end,
"Reflected" mirrors about the first element,
and anything else is a constant fill.