Learn R Programming

squat (version 0.5.0)

moving_average: QTS Moving Average

Description

This function performs QTS smoothing via moving average.

Usage

moving_average(x, window_size = 0)

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

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

Value

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

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.

Examples

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

Run the code above in your browser using DataLab