Skip to contents

Length-window boxcar convolution in "same" mode (output length equals input length, edges biased by zero-padding).

Usage

morie_dsp_moving_average(x, window = 5L)

Arguments

x

Numeric vector.

window

Positive integer kernel length. Default 5.

Value

Numeric vector, length(x).

References

Rangayyan & Krishnan (2015), Ch. 3, sec. 3.3.