generate_ts_with_target {gratis} | R Documentation |
Generating time series with controllable features.
Description
Deprecated function. Please use generate_target()
instead.
Usage
generate_ts_with_target(
n,
ts.length,
freq,
seasonal,
features,
selected.features,
target,
parallel = TRUE,
output_format = "list"
)
Arguments
n |
number of time series to be generated. |
ts.length |
length of the time series to be generated. |
freq |
frequency of the time series to be generated. |
seasonal |
0 for non-seasonal data, 1 for single-seasonal data, and 2 for multiple seasonal data. |
features |
a vector of function names. |
selected.features |
selected features to be controlled. |
target |
target feature values. |
parallel |
An optional argument which allows to specify if the Genetic Algorithm should be run sequentially or in parallel. |
output_format |
An optional argument which allows to choose output format between 'list' and 'tsibble' |
Value
A time-series object of class "ts" or "msts".
Author(s)
Yanfei Kang
Examples
library(tsfeatures)
x <- generate_ts_with_target(
n = 1, ts.length = 60, freq = 1, seasonal = 0,
features = c("entropy", "stl_features"), selected.features = c("entropy", "trend"),
target = c(0.6, 0.9), parallel = FALSE
)
forecast::autoplot(x)
[Package gratis version 1.0.7 Index]