Title: | Time Series Feature Extraction |
---|---|
Description: | Methods for extracting various features from time series data. The features provided are those from Hyndman, Wang and Laptev (2013) <doi:10.1109/ICDMW.2015.104>, Kang, Hyndman and Smith-Miles (2017) <doi:10.1016/j.ijforecast.2016.09.004> and from Fulcher, Little and Jones (2013) <doi:10.1098/rsif.2013.0048>. Features include spectral entropy, autocorrelations, measures of the strength of seasonality and trend, and so on. Users can also define their own feature functions. |
Authors: | Rob Hyndman [aut, cre] , Yanfei Kang [aut] , Pablo Montero-Manso [aut], Mitchell O'Hara-Wild [aut] , Thiyanga Talagala [aut] , Earo Wang [aut] , Yangzhuoran Yang [aut], Souhaib Ben Taieb [ctb], Cao Hanqing [ctb], D K Lake [ctb], Nikolay Laptev [ctb], J R Moorman [ctb], Bohan Zhang [ctb] |
Maintainer: | Rob Hyndman <[email protected]> |
License: | GPL-3 |
Version: | 1.1.1.9000 |
Built: | 2024-11-20 03:20:19 UTC |
Source: | https://github.com/robjhyndman/tsfeatures |
Autocorrelation at lag 9. Included for completion and consistency.
ac_9(y, acfv = stats::acf(y, 9, plot = FALSE, na.action = na.pass))
ac_9(y, acfv = stats::acf(y, 9, plot = FALSE, na.action = na.pass))
y |
the input time series |
acfv |
vector of autocorrelation, if exist, used to avoid repeated computation. |
autocorrelation at lag 9
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Computes various measures based on autocorrelation coefficients of the original series, first-differenced series and second-differenced series
acf_features(x)
acf_features(x)
x |
a univariate time series |
A vector of 6 values: first autocorrelation coefficient and sum of squared of first ten autocorrelation coefficients of original series, first-differenced series, and twice-differenced series. For seasonal data, the autocorrelation coefficient at the first seasonal lag is also returned.
Thiyanga Talagala
Computes a statistic based on the Lagrange Multiplier (LM) test of Engle (1982) for
autoregressive conditional heteroscedasticity (ARCH). The statistic returned is
the value of an autoregressive model of order
lags
applied
to .
arch_stat(x, lags = 12, demean = TRUE)
arch_stat(x, lags = 12, demean = TRUE)
x |
a univariate time series |
lags |
Number of lags to use in the test |
demean |
Should data have mean removed before test applied? |
A numeric value.
Yanfei Kang
An mts object contains a multivariate time series in a matrix, with time on rows. This is converted into a list of univariate time series.
## S3 method for class 'mts' as.list(x, ...)
## S3 method for class 'mts' as.list(x, ...)
x |
multivariate time series of class mts. |
... |
other arguments are ignored. |
A list of ts objects.
Rob J Hyndman
hctsa
Calculate the features that grouped as autocorrelation set,
which have been used in CompEngine database, using method introduced in package hctsa
.
autocorr_features(x)
autocorr_features(x)
x |
the input time series |
Features in this set are embed2_incircle_1
,
embed2_incircle_2
,
ac_9
,
firstmin_ac
,
trev_num
,
motiftwo_entro3
,
and walker_propcross
.
a vector with autocorrelation features
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
hctsa
Converts an input vector into a binarized version from software package hctsa
binarize_mean(y)
binarize_mean(y)
y |
the input time series |
Time-series values above its mean are given 1, and those below the mean are 0.
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Calculate the features that have been used in CompEngine database, using method introduced in package
hctsa
.
compengine(x)
compengine(x)
x |
the input time series |
The features involved can be grouped as autocorrelation
,
prediction
, stationarity
, distribution
, and scaling
.
a vector with CompEngine features
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Computes the number of times a time series crosses the median.
crossing_points(x)
crossing_points(x)
x |
a univariate time series |
A numeric value.
Earo Wang and Rob J Hyndman
hctsa
Calculate the features that grouped as distribution set,
which have been used in CompEngine database, using method introduced in package hctsa
.
dist_features(x)
dist_features(x)
x |
the input time series |
Features in this set are histogram_mode_10
and outlierinclude_mdrmd
.
a vector with distribution features
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
hctsa
The time lag is set to the first zero crossing of the autocorrelation function.
embed2_incircle( y, boundary = NULL, acfv = stats::acf(y, length(y) - 1, plot = FALSE, na.action = na.pass) )
embed2_incircle( y, boundary = NULL, acfv = stats::acf(y, length(y) - 1, plot = FALSE, na.action = na.pass) )
y |
the input time series |
boundary |
the given circular boundary, setting to 1 or 2 in CompEngine. Default to 1. |
acfv |
vector of autocorrelation, if exist, used to avoid repeated computation. |
the proportion of points inside a given circular boundary
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Computes spectral entropy from a univariate normalized spectral density, estimated using an AR model.
entropy(x)
entropy(x)
x |
a univariate time series |
The spectral entropy equals the Shannon entropy of the spectral density
of a stationary process
:
where the density is normalized such that
.
An estimate of
can be obtained using
spec.ar
with
the burg
method.
A non-negative real value for the spectral entropy .
Rob J Hyndman
Jerry D. Gibson and Jaewoo Jung (2006). “The Interpretation of Spectral Entropy Based Upon Rate Distortion Functions”. IEEE International Symposium on Information Theory, pp. 277-281.
Goerg, G. M. (2013). “Forecastable Component Analysis”. Proceedings of the 30th International Conference on Machine Learning (PMLR) 28 (2): 64-72, 2013. Available at https://proceedings.mlr.press/v28/goerg13.html.
entropy(rnorm(1000)) entropy(lynx) entropy(sin(1:20))
entropy(rnorm(1000)) entropy(lynx) entropy(sin(1:20))
hctsa
Time of first minimum in the autocorrelation function from software package hctsa
firstmin_ac( x, acfv = stats::acf(x, lag.max = N - 1, plot = FALSE, na.action = na.pass) )
firstmin_ac( x, acfv = stats::acf(x, lag.max = N - 1, plot = FALSE, na.action = na.pass) )
x |
the input time series |
acfv |
vector of autocorrelation, if exist, used to avoid repeated computation. |
The lag of the first minimum
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
firstmin_ac(WWWusage)
firstmin_ac(WWWusage)
hctsa
Search up to a maximum of the length of the time series
firstzero_ac(y, acfv = stats::acf(y, N - 1, plot = FALSE, na.action = na.pass))
firstzero_ac(y, acfv = stats::acf(y, N - 1, plot = FALSE, na.action = na.pass))
y |
the input time series |
acfv |
vector of autocorrelation, if exist, used to avoid repeated computation. |
The first zero crossing of the autocorrelation function
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
"Flat spots” are computed by dividing the sample space of a time series into ten equal-sized intervals, and computing the maximum run length within any single interval.
flat_spots(x)
flat_spots(x)
x |
a univariate time series |
A numeric value.
Earo Wang and Rob J Hyndman
hctsa
Fits a polynomial of order 1 and then returns the range. The order of fluctuations is 2, corresponding to root mean square fluctuations.
fluctanal_prop_r1(x)
fluctanal_prop_r1(x)
x |
the input time series (or any vector) |
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Computes various measures of heterogeneity of a time series. First the series
is pre-whitened using an AR model to give a new series y. We fit a GARCH(1,1)
model to y and obtain the residuals, e. Then the four measures of heterogeneity
are:
(1) the sum of squares of the first 12 autocorrelations of ;
(2) the sum of squares of the first 12 autocorrelations of
;
(3) the
value of an AR model applied to
;
(4) the
value of an AR model applied to
.
The statistics obtained from
are the ARCH effects, while those
from
are the GARCH effects.
heterogeneity(x)
heterogeneity(x)
x |
a univariate time series |
A vector of numeric values.
Yanfei Kang and Rob J Hyndman
hctsa
Measures the mode of the data vector using histograms with a given number of bins as suggestion.
The value calculated is different from hctsa
and CompEngine
as the histogram edges are calculated differently.
histogram_mode(y, numBins = 10)
histogram_mode(y, numBins = 10)
y |
the input data vector |
numBins |
the number of bins to use in the histogram. |
the mode
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Estimate the smoothing parameter for the level-alpha and
the smoothing parameter for the trend-beta.
hw_parameters
considers additive seasonal trend: ets(A,A,A) model.
holt_parameters(x) hw_parameters(x)
holt_parameters(x) hw_parameters(x)
x |
a univariate time series |
holt_parameters
produces a vector of 2 values: alpha, beta.
hw_parameters
produces a vector of 3 values: alpha, beta and gamma.
Thiyanga Talagala, Pablo Montero-Manso
Computes the Hurst coefficient indicating the level of fractional differencing of a time series.
hurst(x)
hurst(x)
x |
a univariate time series. If missing values are present, the largest contiguous portion of the time series is used. |
A numeric value.
Rob J Hyndman
hctsa
Simple predictors using the past trainLength values of the time series to predict its next value.
localsimple_taures(y, forecastMeth = c("mean", "lfit"), trainLength = NULL)
localsimple_taures(y, forecastMeth = c("mean", "lfit"), trainLength = NULL)
y |
the input time series |
forecastMeth |
the forecasting method, default to |
trainLength |
the number of time-series values to use to forecast the next value.
Default to 1 when using method |
The first zero crossing of the autocorrelation function of the residuals
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))
lumpiness(x, width = ifelse(frequency(x) > 1, frequency(x), 10)) stability(x, width = ifelse(frequency(x) > 1, frequency(x), 10))
x |
a univariate time series |
width |
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
Computes feature of a time series based on sliding (overlapping) windows.
max_level_shift
finds the largest mean shift between two consecutive windows.
max_var_shift
finds the largest var shift between two consecutive windows.
max_kl_shift
finds the largest shift in Kulback-Leibler divergence between
two consecutive windows.
max_level_shift(x, width = ifelse(frequency(x) > 1, frequency(x), 10)) max_var_shift(x, width = ifelse(frequency(x) > 1, frequency(x), 10)) max_kl_shift(x, width = ifelse(frequency(x) > 1, frequency(x), 10))
max_level_shift(x, width = ifelse(frequency(x) > 1, frequency(x), 10)) max_var_shift(x, width = ifelse(frequency(x) > 1, frequency(x), 10)) max_kl_shift(x, width = ifelse(frequency(x) > 1, frequency(x), 10))
x |
a univariate time series |
width |
size of sliding window |
Computes the largest level shift and largest variance shift in sliding mean calculations
A vector of 2 values: the size of the shift, and the time index of the shift.
Earo Wang and Rob J Hyndman
hctsa
Coarse-graining is performed. Time-series values above its mean are given 1, and those below the mean are 0.
motiftwo_entro3(y)
motiftwo_entro3(y)
y |
the input time series |
Entropy of words in the binary alphabet of length 3.
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
motiftwo_entro3(WWWusage)
motiftwo_entro3(WWWusage)
Computes a nonlinearity statistic based on Lee, White & Granger's nonlinearity test of a time series.
The statistic is where
is the Chi-squared statistic from Lee, White and Granger,
and T is the length of the time series. This takes large values
when the series is nonlinear, and values around 0 when the series is linear.
nonlinearity(x)
nonlinearity(x)
x |
a univariate time series |
A numeric value.
Yanfei Kang and Rob J Hyndman
Lee, T. H., White, H., & Granger, C. W. (1993). Testing for neglected nonlinearity in time series models: A comparison of neural network methods and alternative tests. Journal of Econometrics, 56(3), 269-290.
Teräsvirta, T., Lin, C.-F., & Granger, C. W. J. (1993). Power of the neural network linearity test. Journal of Time Series Analysis, 14(2), 209–220.
nonlinearity(lynx)
nonlinearity(lynx)
hctsa
Measures median as more and more outliers are included in the calculation according to a specified rule, of outliers being furthest from the mean.
outlierinclude_mdrmd(y, zscored = TRUE)
outlierinclude_mdrmd(y, zscored = TRUE)
y |
the input time series (ideally z-scored) |
zscored |
Should y be z-scored before computing the statistic. Default: TRUE |
The threshold for including time-series data points in the analysis increases from zero to the maximum deviation, in increments of 0.01*sigma (by default), where sigma is the standard deviation of the time series.
At each threshold, proportion of time series points included and median are calculated, and outputs from the algorithm measure how these statistical quantities change as more extreme points are included in the calculation.
Outliers are defined as furthest from the mean.
median of the median of range indices
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Computes various measures based on partial autocorrelation coefficients of the original series, first-differenced series and second-differenced series
pacf_features(x)
pacf_features(x)
x |
a univariate time series |
A vector of 3 values: Sum of squared of first 5 partial autocorrelation coefficients of the original series, first differenced series and twice-differenced series. For seasonal data, the partial autocorrelation coefficient at the first seasonal lag is also returned.
Thiyanga Talagala
hctsa
Calculate the features that grouped as prediction set,
which have been used in CompEngine database, using method introduced in package hctsa
.
pred_features(x)
pred_features(x)
x |
the input time series |
Features in this set are localsimple_mean1
,
localsimple_lfitac
,
and sampen_first
.
a vector with prediction features
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
hctsa
Modified from the Ben Fulcher's EN_SampEn
which uses code from PhysioNet.
The publicly-available PhysioNet Matlab code, sampenc (renamed here to
RN_sampenc) is available from:
http://www.physionet.org/physiotools/sampen/matlab/1.1/sampenc.m
sampen_first(y)
sampen_first(y)
y |
the input time series |
Embedding dimension is set to 5. The threshold is set to 0.3.
Yangzhuoran Yang
cf. "Physiological time-series analysis using approximate entropy and sample entropy", J. S. Richman and J. R. Moorman, Am. J. Physiol. Heart Circ. Physiol., 278(6) H2039 (2000)
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
hctsa
Modified from the Ben Fulcher version of original code sampenc.m from http://physionet.org/physiotools/sampen/ http://www.physionet.org/physiotools/sampen/matlab/1.1/sampenc.m Code by DK Lake ([email protected]), JR Moorman and Cao Hanqing.
sampenc(y, M = 6, r = 0.3)
sampenc(y, M = 6, r = 0.3)
y |
the input time series |
M |
embedding dimension |
r |
threshold |
Yangzhuoran Yang
cf. "Physiological time-series analysis using approximate entropy and sample entropy", J. S. Richman and J. R. Moorman, Am. J. Physiol. Heart Circ. Physiol., 278(6) H2039 (2000)
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
hctsa
Calculate the features that grouped as scaling set,
which have been used in CompEngine database, using method introduced in package hctsa
.
scal_features(x)
scal_features(x)
x |
the input time series |
Feature in this set is fluctanal_prop_r1
.
a vector with scaling features
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
hctsa
100 time-series segments of length l
are selected at random from the time series and
the mean of the first zero-crossings of the autocorrelation function in each segment is calculated.
spreadrandomlocal_meantaul(y, l = 50)
spreadrandomlocal_meantaul(y, l = 50)
y |
the input time series |
l |
the length of local time-series segments to analyse as a positive integer. Can also be a specified character string: "ac2": twice the first zero-crossing of the autocorrelation function |
mean of the first zero-crossings of the autocorrelation function
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
hctsa
Calculate the features that grouped as stationarity set,
which have been used in CompEngine database, using method introduced in package hctsa
.
station_features(x)
station_features(x)
x |
the input time series |
Features in this set are std1st_der
,
spreadrandomlocal_meantaul_50
,
and spreadrandomlocal_meantaul_ac2
.
a vector with stationarity features
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
hctsa
Modified from SY_StdNthDer
in hctsa
. Based on an idea by Vladimir Vassilevsky.
std1st_der(y)
std1st_der(y)
y |
the input time series. Missing values will be removed. |
Standard deviation of the first derivative of the time series.
Yangzhuoran Yang
cf. http://www.mathworks.de/matlabcentral/newsreader/view_thread/136539
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Computes various measures of trend and seasonality of a time series based on
an STL decomposition. The number of seasonal periods, and the length of the
seasonal periods are returned. Also, the strength of seasonality corresponding
to each period is estimated. The mstl
function is used
to do the decomposition.
stl_features(x, ...)
stl_features(x, ...)
x |
a univariate time series. |
... |
Other arguments are passed to |
A vector of numeric values.
Rob J Hyndman
hctsa
Calculates the numerator of the trev function, a normalized nonlinear autocorrelation, The time lag is set to 1.
trev_num(y)
trev_num(y)
y |
the input time series |
the numerator of the trev function of a time series
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
trev_num(WWWusage)
trev_num(WWWusage)
tsfeatures
computes a matrix of time series features from a list of time series
tsfeatures( tslist, features = c("frequency", "stl_features", "entropy", "acf_features"), scale = TRUE, trim = FALSE, trim_amount = 0.1, parallel = FALSE, multiprocess = future::multisession, na.action = na.pass, ... )
tsfeatures( tslist, features = c("frequency", "stl_features", "entropy", "acf_features"), scale = TRUE, trim = FALSE, trim_amount = 0.1, parallel = FALSE, multiprocess = future::multisession, na.action = na.pass, ... )
tslist |
a list of univariate time series, each of class |
features |
a vector of function names which return numeric vectors of features. All features returned by these functions must be named if they return more than one feature. Existing functions from installed packages may be used, but the package must be loaded first. Functions must return a result for all time series, even if it is just NA. |
scale |
if |
trim |
if |
trim_amount |
Default level of trimming if |
parallel |
If TRUE, multiple cores (or multiple sessions) will be used. This only speeds things up when there are a large number of time series. |
multiprocess |
The function from the |
na.action |
A function to handle missing values. Use |
... |
Other arguments get passed to the feature functions. |
A feature matrix (in the form of a tibble) with each row corresponding to one time series from tslist, and each column being a feature.
Rob J Hyndman
mylist <- list(sunspot.year, WWWusage, AirPassengers, USAccDeaths) tsfeatures(mylist)
mylist <- list(sunspot.year, WWWusage, AirPassengers, USAccDeaths) tsfeatures(mylist)
unitroot_kpss
computes the statistic for the Kwiatkowski et al. unit root test
using the default settings for the ur.kpss
function.
unitroot_pp
computes the statistic for the Phillips-Perron unit root test
using the default settings for the ur.pp
function.
unitroot_kpss(x, ...) unitroot_pp(x, ...)
unitroot_kpss(x, ...) unitroot_pp(x, ...)
x |
a univariate time series. |
... |
Other arguments are passed to the |
A numeric value
Pablo Montero-Manso
hctsa
The hypothetical particle (or 'walker') moves in response to values of the time series at each point. The walker narrows the gap between its value and that of the time series by 10%.
walker_propcross(y)
walker_propcross(y)
y |
the input time series |
fraction of time series length that walker crosses time series
Yangzhuoran Yang
B.D. Fulcher and N.S. Jones. hctsa: A computational framework for automated time-series phenotyping using massive feature extraction. Cell Systems 5, 527 (2017).
B.D. Fulcher, M.A. Little, N.S. Jones Highly comparative time-series analysis: the empirical structure of time series and their methods. J. Roy. Soc. Interface 10, 83 (2013).
Yahoo server metrics
yahoo_data(...)
yahoo_data(...)
... |
Additional arguments passed to Downloads and returns aggregated and anonymized datasets from Yahoo representing server metrics of Yahoo services. |
A matrix of time series with 1437 rows of hourly data, and 1748 columns representing different servers.
Rob Hyndman, Earo Wang, Nikolay Laptev, Mitchell O'Hara-Wild
Hyndman, R.J., Wang, E., Laptev, N. (2015) Large-scale unusual time series detection. In: Proceedings of the IEEE International Conference on Data Mining. Atlantic City, NJ, USA. 14–17 November 2015. https://robjhyndman.com/publications/icdm2015/
yahoo <- yahoo_data() plot(yahoo[,1:10]) plot(yahoo[,1:44], plot.type='single', col=1:44)
yahoo <- yahoo_data() plot(yahoo[,1:10]) plot(yahoo[,1:44], plot.type='single', col=1:44)
Computes proportion of zeros in a time series
zero_proportion(x, tol = 1e-08)
zero_proportion(x, tol = 1e-08)
x |
a univariate time series |
tol |
tolerance level. Absolute values below this are considered zeros. |
A numeric value.
Thiyanga Talagala