The repr_windowing
computes representations from windows of a vector.
repr_windowing(x, win_size, func = NULL, args = NULL)
the numeric vector (time series)
the length of the window
the function for representation computation. For example repr_feaclip
or repr_trend
.
the list of additional arguments to the func (representation computation function). The args list must be named.
the numeric vector
This function applies specified representation method (function) to every non-overlapping window (subsequence, piece) of a time series.
Laurinec P, and Lucka M (2018) Interpretable multiple data streams clustering with clipped streams representation for the improvement of electricity consumption forecasting. Data Mining and Knowledge Discovery. Springer. DOI: 10.1007/s10618-018-0598-2
# NOT RUN {
# func without arguments
repr_windowing(rnorm(48), win_size = 24, func = repr_feaclip)
# func with arguments
repr_windowing(rnorm(48), win_size = 24, func = repr_featrend,
args = list(func = maxC, order = 2, pieces = 2))
# }
Run the code above in your browser using DataLab