MovingAverage {RespirAnalyzer} | R Documentation |
Function to calculate Moving Average of a series
Description
function to calculate Moving Average of a series
Usage
MovingAverage(y, W)
Arguments
y |
a numeric vector, with respiratory data for a regularly spaced time series. |
W |
a Positive integer, the windows of Moving Average. |
Value
A new numeric vector after calculate the moving average.
References
Zhang T, Dong X, Chen C, Wang D, Zhang XD. RespirAnalyzer: an R package for continuous monitoring of respiratory signals.
Examples
data("TestData")
W <- 50
y <- MovingAverage(Data[,2],W)
[Package RespirAnalyzer version 1.0.2 Index]