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)

PetoLau/TSrepr documentation built on July 14, 2020, 6:13 p.m.