Moving average (rectangular) filter

Calling sequence

y = ma(x,k)

Parameters

x:

Input signal (1d vector)

k:

Length of the moving average window

y:

Filtered signal (1d vector)

Description

Filter the input signal x with a moving average kernel of length k.

Note: this is the matched filter for NRZ data.