movmean {matrixProfile} | R Documentation |
Moving mean
Description
Calculates moving mean of input data.
Usage
movmean(x = x, w = w)
Arguments
x |
A given input data. |
w |
A sliding window of length w. |
Value
An array of local w-point mean values, where each mean is calculated over a sliding window of length w across neighboring elements of x. The window size is automatically truncated at the endpoints when there are not enough elements to fill the window. When the window is truncated, the average is taken over only the elements that fill the window. Output is the same size as x.
Author(s)
Donghwan Kim
ainsuotain@hanmail.net
donhkim9714@korea.ac.kr
dhkim2@bistel.com
References
https://kr.mathworks.com/help/matlab/ref/movmean.html?lang=en
Examples
x <- 1:10
movmean(x, 3)
[Package matrixProfile version 0.5.0 Index]