R/features.R
lumpiness.Rd
Computes feature of a time series based on tiled (non-overlapping) windows. Means or variances are produced for all tiled windows. Then stability is the variance of the means, while lumpiness is the variance of the variances.
lumpiness(x, width = ifelse(frequency(x) > 1, frequency(x), 10)) stability(x, width = ifelse(frequency(x) > 1, frequency(x), 10))
a univariate time series
size of sliding window
A numeric vector of length 2 containing a measure of lumpiness and a measure of stability.
Earo Wang and Rob J Hyndman