moving_average: QTS Moving Average

View source: R/interface.R

moving_averageR Documentation

QTS Moving Average

Description

This function performs QTS smoothing via moving average.

Usage

moving_average(x, window_size = 0)

## S3 method for class 'qts'
moving_average(x, window_size = 0)

## S3 method for class 'qts_sample'
moving_average(x, window_size = 0)

Arguments

x

An object of class qts or qts_sample.

window_size

An integer value specifying the size of the sliding window used to compute the median value. Defaults to 0L.

Value

An object of the same class as the input argument x storing the smoothed QTS.

Examples

moving_average(vespa64$igp[[1]], window_size = 5)
moving_average(vespa64$igp, window_size = 5)

astamm/squad documentation built on Jan. 26, 2024, 5:30 p.m.