deerlab.movmean

movmean(x, N)[source]

Moving mean filter

Returns an array of local N-point mean values, where each mean is calculated over a sliding window of length k across neighboring elements of x.

Parameters:
xndarray

Array to be filtered

Ninteger scalar

Window size

Returns:
xfiltndarray

Filtered array