fast_movavg: Fast implementation of moving average

View source: R/misc.R

fast_movavgR Documentation

Fast implementation of moving average

Description

This function does not handle NA values

Usage

fast_movavg(data, window_size)

Arguments

data

a vector or a column matrix of numeric.

window_size

moving sd window size

Value

Returns a vector with the moving average

Examples

data_avg <- fast_movavg(mp_toy_data$data[, 1], mp_toy_data$sub_len)

tsmp documentation built on Aug. 21, 2022, 1:13 a.m.