ts_norm_gminmax {tspredit}R Documentation

Time Series Global Min-Max

Description

Rescales data, so the minimum value is mapped to 0 and the maximum value is mapped to 1.

Usage

ts_norm_gminmax(outliers = outliers_boxplot())

Arguments

outliers

Indicate outliers transformation class. NULL can avoid outliers removal.

Value

returns a ts_norm_gminmax object.

Examples

# time series to normalize
library(daltoolbox)
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_gminmax()
preproc <- fit(preproc, ts)
tst <- transform(preproc, ts)
ts_head(tst, 3)
summary(tst[,10])

[Package tspredit version 1.2.707 Index]