Skip to content

MovingMap

Apply a function to a sliding window.

$ wo 'MovingMap[Mean, {1, 2, 3, 4, 5}, 3]'
{5/2, 7/2}