movmean: Moving mean

Description Usage Arguments Value Author(s) References Examples

Description

Calculates moving mean of input data.

Usage

1
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

1
2
x <- 1:10
movmean(x, 3)

matrixProfile documentation built on May 2, 2019, 9:43 a.m.