# Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# MovingMap

MovingMap[f,data,window]
applies f to data over a moving window specified by window.

applies f to data over a moving window with padding specified by padding.

## Details and OptionsDetails and Options

• MovingMap can be used for regularly spaced data and for irregularly spaced data.
• In many contexts, the are times.
• The data can be a list of values , a list of time-value pairs , a TimeSeries, EventSeries, or TemporalData.
• Basic window specifications can be given as:
•  k discrete window covering k time points {r} discrete with positive integer block size r {r,g} discrete with block size r and granularity g {r,g,s} discrete with seasonality s {{Δt}} continuous with constant width
• For discrete window , the data is sampled on a uniform grid with granularity g in steps of s.
• The default value for the seasonality s is 1.
• Specifying a window {r} uses the smallest time increment in data for g. If times are not given, g is assumed to be 1.
• The window specification indicates the alignment of current time wrt to the window.
• Settings for window alignment align include Right (default), Left, and Center.
• If a centered discrete window with even block size r is given, then r is increased by 1.
•  {} no padding (default) p pad with repetitions of the value p {p1,p2,…} cyclicly pad with values "Reflected" pad with a reflection of data
• MovingMap threads pathwise for multipath data.

## ExamplesExamplesopen allclose all

### Basic Examples  (3)Basic Examples  (3)

Perform a three-element moving average:

 Out[1]=

Smooth an irregularly spaced time series:

A 90-day moving median:

 Out[3]=

Smooth multiple paths simultaneously:

Use a centered discrete window and reflected padding:

 Out[3]=