repr_sma: Simple Moving Average representation

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

The repr_sma computes Simple Moving Average (SMA) from a time series.

Usage

1

Arguments

x

the numeric vector (time series)

order

the order of simple moving average

Value

the numeric vector of smoothed values of the length = length(x) - order + 1

Author(s)

Peter Laurinec, <tsreprpackage@gmail.com>

Examples

1
repr_sma(rnorm(50), 4)

TSrepr documentation built on July 13, 2020, 9:07 a.m.