Expand description
Time-series analysis utilities: statistics, filtering, autocorrelation, trend decomposition, spectral analysis, change-point detection, and AR models.
Structs§
- ArModel
- Autoregressive model of order
p. - Autocorrelation
- Autocorrelation function (ACF) estimator.
- Change
Point Detection - CUSUM-based change-point detector.
- Cross
Correlation - Cross-correlation estimator for two equal-length signals.
- Periodogram
- Lomb-Scargle periodogram for unevenly-sampled data.
- Time
Series - A time series with optional explicit timestamps.
- Time
Series Stats - Descriptive statistics computed over a
TimeSeries.
Enums§
- Time
Series Filter - Filter types available through
apply_filter.
Functions§
- adf_
test - Simplified Augmented Dickey-Fuller test for stationarity.
- apply_
filter - Apply a
TimeSeriesFiltertodataand return the filtered signal. - compute_
power_ spectrum - Compute the one-sided power spectral density via a direct DFT.
- compute_
stats - Compute descriptive statistics for a
TimeSeries. - decompose_
trend - Classical additive decomposition of a time series into trend, seasonal, and residual components.
- ema
- Compute an exponential moving average with smoothing factor
alpha∈ (0, 1]. - find_
peaks - Find local maxima whose prominence exceeds
min_prominence. - hurst_
exponent - Estimate the Hurst exponent of a time series using R/S (rescaled range) analysis.
- interpolate_
linear - Fill
NaNvalues indatausing linear interpolation between the nearest valid neighbours. Leading and trailingNaNs are filled with the first / last valid value respectively. - interpolate_
spline - Fill
NaNvalues indatausing simple cubic-spline-like interpolation (Catmull-Rom tangents) between the nearest valid neighbours. - moving_
average - Compute a centred (symmetric) simple moving average.
- zero_
crossing_ rate - Compute the zero-crossing rate: fraction of consecutive-sample sign changes.