Computes dynamic complexity and other rolling window measures for univariate time series data.
Arguments
- data
[
ts,numeric()]
Univariate time series data.- measures
[
character()]
A vector of measures to calculate. See 'Details' for more information on the available measures.- window
[
integer(1):7L]
A positiveintegerspecifying the rolling window size. Must be at least2.- align
[
character(1):"center"]
Alignment of the window. The available options are:"center","right", and"left". The calculated measure is assigned to the center, rightmost, or leftmost point of the window, respectively.
Details
The following measures can be calculated:
"complexity": Product of fluctuation and distribution measures."fluctuation": Root mean square of successive differences."distribution": Deviation from uniform distribution."autocorrelation": Lag-1 autocorrelation coefficient."max": Rolling maximum."min": Rolling minimum."variance": Rolling variance.
The option "all" computes all of the above.