Calculates a moving average with zero phase shift.
LINAVG(series, N, rampflag)
series 
 
Any series, table, or expression resulting in a series or table. 

N 
 
An integer, the number of points to average as the series is processed. 

rampflag 
 
Optional. An integer, endpoint averaging flag.

A series or table.
W1: 1..5
W2: linavg(w1, 3)
W2 contains the series:
{1.5, 2.167, 3.0, 3.833, 4.5}
The X offset of the result is 1.0.
W1: integ(gnorm(1000, 1/100))
W2: movavg(w1, 10)
W3: linavg(w1, 10);overp(w1, lred);overp(w2, lgreen)
W1 contains 1000 samples of synthesized data.
W2 performs a 10 point standard moving average.
W3 performs a zero phase moving average by reversing the original data, computing a 10 point moving average, reversing the result and computing another 10 point moving average.
Compared to the standard moving average, the peaks of the resulting smoothed series line up with the original data.
LINAVG computes a zero phase moving average by reversing the input series, computing an N point moving average, reversing the result and computing another N point moving average. The reversal steps help ensure that the peak locations of the original data are preserved. The data is effectively smoothed with an 2N point average.
See LINEXPAVG to compute a zero phase exponential moving average.