ScalePattern: Scale a Time Series Pattern To Add More Points

Description Usage Arguments

View source: R/synthetic_data_generation.R

Description

Points are added in between the points of the pattern, with a density cotrolled by the scaling.factor parameter. The shape of the pattern is maintained.

Usage

1
ScalePattern(pattern, scaling.factor)

Arguments

pattern

A time series xts pattern

scaling.factor

The new length of the pattern will be the scaling.factor multipled by the old length


joshmarsh/TSTestDataUtil documentation built on May 19, 2019, 8:54 p.m.