ts_norm_diff: Time Series Diff

View source: R/ts_norm_diff.R

ts_norm_diffR Documentation

Time Series Diff

Description

It receives as parameter the variable remove_outliters. This function calculates the difference between the values of a time series

Usage

ts_norm_diff(remove_outliers = TRUE)

Arguments

remove_outliers

logical: if TRUE (default) outliers will be removed.

Value

a ts_norm_diff object.

Examples

# time series to normalize
data(sin_data)

# convert to sliding windows
ts <- ts_data(sin_data$y, 10)
ts_head(ts, 3)
summary(ts[,10])

# normalization
preproc <- ts_norm_diff()
preproc <- fit(preproc, ts)
tst <- transform(preproc, ts)
ts_head(tst, 3)
summary(tst[,9])

daltoolbox documentation built on May 29, 2024, 1:57 a.m.