API Reference

Core

pyhctsa.calculator.FeatureCalculator([...])

A configuration-driven feature extraction calculator for time series data.

pyhctsa.distribute.LocalDistributor([n_workers])

Local process-based distributor using a pathos ProcessPool.

Utilities

pyhctsa.utils.get_dataset([which])

Load predefined datasets for testing and validation.

pyhctsa.utils.z_score(x)

Z-score the input data vector.

pyhctsa.utils.dict_output(func)

Decorator for a feature function that returns a dict of outputs (one feature per field).

pyhctsa.utils.nan_outputs(func, *args, **kwargs)

The output of func(y, *args, **kwargs) when every one of its outputs is undefined: a dict with all of its fields NaN (nan if the function does not return a dict).

Shared hctsa helpers

Ports of hctsa’s BF_* helper functions, shared by the methods below (the portable random generator and its seeds, robust fits, explicit histogram bin edges and kernel densities, and the removal of points).

pyhctsa.robust.bf_random(n[, seed, kind])

Portable pseudo-random numbers: a stream fixed by the seed alone (hctsa BF_Random).

pyhctsa.robust.bf_random_seed([random_seed])

The integer seed (for bf_random()) that a random_seed input stands for (hctsa BF_RandomSeed).

pyhctsa.robust.bf_tie_break_noise(y[, seed])

Add tiny, reproducible jitter to break exact ties in y (hctsa BF_TieBreakNoise).

pyhctsa.robust.bf_remove_points(y[, ...])

Remove or saturate a proportion of the points of a time series (hctsa's BF_RemovePoints).

pyhctsa.robust.bf_runs_z(y)

Signed z-statistic of a runs test for randomness about the median (hctsa BF_RunsZ).

pyhctsa.robust.bf_residual_stats(res, y)

Statistics of the residuals of a fit, for remaining structure (hctsa BF_ResidualStats).

pyhctsa.robust.bf_theil_sen(x, y)

Theil-Sen robust straight-line fit (hctsa BF_TheilSen).

pyhctsa.robust.bf_exp_fit(x, y[, ...])

Global least-squares fit of a*exp(b*x) + c by variable projection (hctsa BF_ExpFit).

pyhctsa.robust.bf_fit_density_curve(x, p, model)

Deterministic least-squares fit of a simple curve to a density (hctsa BF_FitDensityCurve).

pyhctsa.robust.bf_gauss_mix2(xc, p, delta)

Mixture of two Gaussians fitted to a binned distribution by EM (hctsa BF_GaussMix2).

pyhctsa.robust.bf_fit_sinusoids(y, k[, constant])

Least-squares fit of a sum of k sinusoids to a time series (hctsa BF_FitSinusoids).

pyhctsa.robust.bf_ks_density(y[, xi, h])

Gaussian kernel density estimate with an explicit bandwidth (hctsa BF_KSDensity).

pyhctsa.robust.bf_hist_edges(y[, bin_rule, ...])

Equal-width histogram bin edges from an explicit bin-count rule (hctsa BF_HistEdges).

pyhctsa.robust.bf_quantile_edges(y, num_bins)

Histogram bin edges at the quantiles of the data: equiprobable bins (hctsa BF_QuantileEdges).

pyhctsa.robust.bf_half_sample_mode(y)

Half-sample mode: a robust, bin-free estimate of the mode (hctsa BF_HalfSampleMode).

Time-Series Analysis Method Modules

Changepoint

pyhctsa.operations.changepoint.stepdetect(y)

Analysis of discrete steps in a time series.

pyhctsa.operations.changepoint.l1pwc_sweep_lambda(y, ...)

Dependence of step detection on regularization parameter.

pyhctsa.operations.changepoint.wavelet_var_chg(y)

Number of variance change points found from a wavelet detail signal.

Correlation

pyhctsa.operations.correlation.oversampling(y)

Detects temporal oversampling relative to a series' own dynamics.

pyhctsa.operations.correlation.time_rev_kld(y)

Kullback-Leibler divergence between forward and time-reversed embeddings.

pyhctsa.operations.correlation.autocorr(y[, ...])

Compute the autocorrelation of an input time series.

pyhctsa.operations.correlation.autocorr_x2_shape(y)

Shape of the time-reversibility profile of a time series.

pyhctsa.operations.correlation.add_noise(y)

Changes in the automutual information with the addition of noise.

pyhctsa.operations.correlation.theiler_q(y)

Theiler's Q statistic, a third-moment statistic of sums of adjacent samples.

pyhctsa.operations.correlation.crinkle_statistic(y)

Crinkle statistic: normalized fourth moment of the second difference.

pyhctsa.operations.correlation.time_rev_kaplan(y)

Time-reversal asymmetry statistic (D.

pyhctsa.operations.correlation.pos_neg_asymmetry(y)

Asymmetry of local dynamics between positive and negative regimes.

pyhctsa.operations.correlation.embed2_angle_tau(y, ...)

Angle autocorrelation in a 2-dimensional delay embedding, over delays.

pyhctsa.operations.correlation.embed2(y[, tau])

Statistics of the time series in a 2-dimensional embedding space.

pyhctsa.operations.correlation.periodicity_wang(y)

Periodicity extraction measure of Wang et al. (2007).

pyhctsa.operations.correlation.compare_min_ami(y)

Assess the variability in the first minimum of automutual information (AMI) across binning strategies.

pyhctsa.operations.correlation.histogram_ami(y)

The automutual information of the distribution using histograms.

pyhctsa.operations.correlation.stick_angles(y)

Analysis of the angles between successive same-sign time-series values.

pyhctsa.operations.correlation.falling_sticks(y)

Physical falling-sticks model of line-of-sight interaction.

pyhctsa.operations.correlation.nonlinear_autocorr(y, taus)

Compute a custom nonlinear autocorrelation of a time series.

pyhctsa.operations.correlation.partial_autocorr(y)

Compute the partial autocorrelation of an input time series.

pyhctsa.operations.correlation.embed2_dist(y)

Analyzes distances in a 2-dimensional embedding space of a time series.

pyhctsa.operations.correlation.embed2_basic(y)

Point-density statistics in a two-dimensional delay embedding.

pyhctsa.operations.correlation.embed2_shapes(y)

Shape-based statistics in a 2-d embedding space.

pyhctsa.operations.correlation.fzcglscf(y, ...)

The first zero-crossing of the generalized self-correlation function.

pyhctsa.operations.correlation.glscf(y, ...)

Compute the generalized linear self-correlation function (GLSCF) of a time series.

pyhctsa.operations.correlation.first_crossing(y)

The first crossing of a given autocorrelation function across a given threshold.

pyhctsa.operations.correlation.translate_shape(y)

Statistics on datapoints inside geometric shapes across the time series.

pyhctsa.operations.correlation.autocorr_shape(y)

How the autocorrelation function changes with the time lag.

pyhctsa.operations.correlation.trev(y[, tau])

Normalized nonlinear autocorrelation (trev) function of a time series.

pyhctsa.operations.correlation.tc3(y[, tau])

Normalized nonlinear autocorrelation function, tc3.

pyhctsa.operations.correlation.joint_non_gaussianity(y)

Tests for non-Gaussianity of the joint, time-lagged embedding distribution.

pyhctsa.operations.correlation.matrix_profile(y)

How well each subsequence shape recurs elsewhere in a time series (the matrix profile).

pyhctsa.operations.correlation.quantilogram(y)

Serial dependence of the series being below its own quantiles (the quantilogram).

pyhctsa.operations.correlation.remove_points(y)

How the autocorrelation of a time series changes when a set of points is removed or clipped.

Criticality

pyhctsa.operations.criticality.rad(x[, tau, ...])

Compute the Rescaled Auto-Density (RAD) feature of a time series.

Distribution

pyhctsa.operations.distribution.cumulants(x)

Distributional moments of the input data.

pyhctsa.operations.distribution.compare_ks_fit(x, ...)

Compares a fitted distribution with the smoothed distribution of the data.

pyhctsa.operations.distribution.withinp(x[, ...])

Proportion of data points within p standard deviations of the mean or median.

pyhctsa.operations.distribution.unique(y)

The proportion of the time series that are unique values.

pyhctsa.operations.distribution.spread(y[, ...])

Measure of spread of the input time series.

pyhctsa.operations.distribution.quantile(y)

Calculates the quantile value at a specified proportion, p.

pyhctsa.operations.distribution.proportion_values(x)

Calculate the proportion of values meeting specific conditions in a time series.

pyhctsa.operations.distribution.pleft(y[, th])

Distance from the mean at which a given proportion of data are more distant.

pyhctsa.operations.distribution.min_max(y[, ...])

The maximum and minimum values of the input data vector.

pyhctsa.operations.distribution.mean(y[, ...])

A given measure of location of a data vector.

pyhctsa.operations.distribution.high_low_mu(y)

The high_low_mu statistic.

pyhctsa.operations.distribution.fit_mle(y[, ...])

Maximum likelihood distribution fit to data.

pyhctsa.operations.distribution.cv(x[, k])

Calculate the coefficient of variation of order k.

pyhctsa.operations.distribution.custom_skewness(y)

Compute custom skewness measures of a time series.

pyhctsa.operations.distribution.burstiness(y)

Calculate burstiness statistics of a time series.

pyhctsa.operations.distribution.moments(y[, ...])

A moment of the distribution of the input time series.

pyhctsa.operations.distribution.outlier_include(y)

How the timing and spacing of extreme values change as the threshold rises.

pyhctsa.operations.distribution.outlier_test(y)

How distributional statistics depend on distributional outliers.

pyhctsa.operations.distribution.trimmed_mean(x)

Mean of the trimmed time series.

pyhctsa.operations.distribution.histogram_asymmetry(y)

Calculate measures of histogram asymmetry for a time series.

pyhctsa.operations.distribution.histogram_mode(y)

Measures the mode of the data vector using histograms with a given number of bins.

pyhctsa.operations.distribution.remove_points(y)

How time-series properties change as points are removed.

pyhctsa.operations.distribution.fit_kernel_smooth(x)

Statistics of a kernel-smoothed distribution of the data.

pyhctsa.operations.distribution.simple_fit(x, ...)

Fits a simple curve to the distribution of the values.

pyhctsa.operations.distribution.tail_index(y)

Tail index of the distribution of values: how heavy its tails are.

Entropy

pyhctsa.operations.entropy.shannon_entropy(y)

Approximate Shannon entropy of a time series.

pyhctsa.operations.entropy.distribution_entropy(y)

Distributional entropy.

pyhctsa.operations.entropy.multi_scale_entropy(y)

Multiscale entropy (MSE) of a time series.

pyhctsa.operations.entropy.sample_entropy(y)

Compute Sample Entropy (SampEn) of a time series.

pyhctsa.operations.entropy.permutation_entropy(y)

Permutation Entropy (PermEn) of a time series.

pyhctsa.operations.entropy.rpde(y[, m, tau, ...])

Recurrence period density entropy (RPDE).

pyhctsa.operations.entropy.approximate_entropy(x)

Approximate entropy (ApEn) of a time series.

pyhctsa.operations.entropy.complexity_invariant_distance(y)

Complexity-invariant distance.

pyhctsa.operations.entropy.lempel_ziv_complexity(x)

Compute the normalized Lempel-Ziv (LZ) complexity of an n-bit encoding of a time series.

pyhctsa.operations.entropy.bubble_entropy(y)

Bubble entropy of a time series.

pyhctsa.operations.entropy.dispersion_entropy(y)

Dispersion entropy of a time series.

pyhctsa.operations.entropy.fuzzy_entropy(y)

Fuzzy entropy of a time series.

pyhctsa.operations.entropy.permutation_entropy_complexity(y)

Jensen-Shannon statistical complexity of ordinal patterns.

pyhctsa.operations.entropy.randomize(y[, ...])

How properties of the series change as it is progressively randomized.

pyhctsa.operations.entropy.wavelet_entropy(y)

Wavelet entropy of a time series.

Extreme Events

pyhctsa.operations.extreme_events.moving_threshold(y)

Moving threshold model for extreme events in a time series.

pyhctsa.operations.extreme_events.extreme_event_order(y)

Temporal patterning of positive vs. negative extreme events.

Graph

pyhctsa.operations.graph.visibility_graph(y)

Visibility graph analysis of a time series.

pyhctsa.operations.graph.ordinal_partition_network(y)

Ordinal partition transition network measures.

Hypothesis Tests

pyhctsa.operations.hypothesis_tests.variance_ratio_test(y)

Variance ratio test for random walk.

pyhctsa.operations.hypothesis_tests.hypothesis_test(x)

Perform statistical hypothesis testing on a time series.

pyhctsa.operations.hypothesis_tests.distribution_test(x)

Hypothesis test for distributional fits to a data vector.

pyhctsa.operations.hypothesis_tests.independence_tests(y)

Statistic or p-value of a test of serial independence.

pyhctsa.operations.hypothesis_tests.marginal_tests(y)

p-value of a hypothesis test about the distribution of values.

Information

pyhctsa.operations.information.first_min(y)

Time of first minimum in a given self-correlation function.

pyhctsa.operations.information.first_max(y)

Time of first maximum in a given self-correlation function.

pyhctsa.operations.information.automutual_info_stats(y)

Calculate statistics on the automutual information (AMI) function of a time series.

pyhctsa.operations.information.automutual_info(y)

Compute time-delayed automutual information of a time series.

pyhctsa.operations.information.multivariate_ami(y)

Multivariate automutual information, I(x_t; x_{t-tau}, x_{t-2tau}).

Medical

pyhctsa.operations.medical.raw_hrv_meas(x)

Compute Poincaré plot-based HRV (Heart Rate Variability) measures from RR interval time series.

pyhctsa.operations.medical.hrv_classic(y)

Compute classic heart rate variability (HRV) statistics.

pyhctsa.operations.medical.pol_var(x[, d, D])

Compute the POLVARd measure of a time series.

pyhctsa.operations.medical.pnn(x)

Compute pNNx measures of heart rate variability (HRV).

pyhctsa.operations.medical.porta(x[, num_levels])

Compute Porta's symbolic-dynamics word-type indices.

Model Fit

pyhctsa.operations.model_fit.hmm_fit(y[, ...])

A hidden Markov model fitted to the first part of the series, and how well it describes the rest.

pyhctsa.operations.model_fit.fit_subsegments(y)

Robustness of model parameters across different segments of a time series.

pyhctsa.operations.model_fit.loop_local_simple(y)

How simple local forecasting depends on window length.

pyhctsa.operations.model_fit.local_simple(y)

Simple local time-series forecasting.

pyhctsa.operations.model_fit.residual_analysis(e)

Canonical summary of the residuals from a model fit.

pyhctsa.operations.model_fit.exp_smoothing(x)

Exponential smoothing time-series prediction model.

pyhctsa.operations.model_fit.ar_cov(y[, p])

Fits an autoregressive (AR) model of a given order p.

pyhctsa.operations.model_fit.ar_fit(y[, ...])

Statistics of a fitted AR model to a time series.

pyhctsa.operations.model_fit.is_seasonal(y)

Fits a 'sin1' (single frequency sinusoid) model to the time series.

pyhctsa.operations.model_fit.gp_fit_across(y)

Gaussian Process time-series modeling for local prediction.

pyhctsa.operations.model_fit.gp_local_prediction(y)

Gaussian Process time-series model for local prediction.

pyhctsa.operations.model_fit.compare_ar(y[, ...])

How the out-of-sample error of an AR model changes with its order.

pyhctsa.operations.model_fit.compare_test_sets(y)

How well a model fitted to the whole series predicts short stretches of it.

pyhctsa.operations.model_fit.garch_compare(y)

How well GARCH models of different orders describe the changing variance of the series.

pyhctsa.operations.model_fit.garch_fit(y[, ...])

A GARCH model of the changing variance of the series, and what it leaves in the residuals.

pyhctsa.operations.model_fit.gp_hyperparameters(y)

Fits a Gaussian process to the series and reports its fitted kernel parameters and goodness of fit.

pyhctsa.operations.model_fit.state_space_comp_order(y)

How the fit of a state-space model improves as its order increases.

pyhctsa.operations.model_fit.state_space_n4sid(y)

A fitted state-space model of the series, and how well it predicts the later part of the series.

pyhctsa.operations.model_fit.armax(y[, ...])

The coefficients of a fitted ARMA model, and how well it predicts the later part of the series.

pyhctsa.operations.model_fit.hmm_compare_n_states(y)

How the fit of hidden Markov models to the series changes with the number of hidden states.

pyhctsa.operations.model_fit.steps_ahead(y)

How the accuracy of multi-step-ahead model predictions compares with trivial predictors and changes with the horizon.

Nonlinearity

pyhctsa.operations.nonlinearity.nsamdf(x[, ...])

Computes the nonlinearity measure L through nsAMDF (nonlinear average magnitude difference function), developed by Ozkurt et al. [1].

pyhctsa.operations.nonlinearity.nlpe(y[, ...])

Normalized drop-one-out constant interpolation nonlinear prediction error.

pyhctsa.operations.nonlinearity.embed_pca(y)

Reconstructs the time series as a time-delay embedding, and performs Principal Components Analysis on the result.

pyhctsa.operations.nonlinearity.ssa(y[, L])

Singular Spectrum Analysis of a time series.

pyhctsa.operations.nonlinearity.zero_one_test(y)

Modified 0-1 test for chaos.

pyhctsa.operations.nonlinearity.local_density(y)

How densely the delay-embedded trajectory is sampled around each of its points, and how that density changes along the orbit.

pyhctsa.operations.nonlinearity.tisean_d2(y)

Correlation dimension and entropy from the TISEAN package's d2 routine.

pyhctsa.operations.nonlinearity.poincare_section(y)

Poincare section analysis of a time series.

pyhctsa.operations.nonlinearity.delay_time(y)

Optimal delay time using the method of Parlitz and Wichard.

pyhctsa.operations.nonlinearity.box_count_entropy_rate(y)

How the box-counting (order-2 Renyi) entropy of a delay embedding grows with embedding dimension.

pyhctsa.operations.nonlinearity.dvv(y[, m, ...])

How well nearby delay vectors predict their target value, compared with surrogates.

pyhctsa.operations.nonlinearity.dimensions(y)

Box-counting and correlation-sum estimates of the dimension of the delay embedding, and how they change with the embedding dimension.

pyhctsa.operations.nonlinearity.evt_local_dim(y)

The local dimension and persistence of the reconstructed attractor, from extreme-value statistics of close returns.

pyhctsa.operations.nonlinearity.embed_cluster(y)

Whether the time-delay embedding of the series forms separate clusters of points.

pyhctsa.operations.nonlinearity.embed_kernel_pca(y)

Kernel PCA of a time-delay embedding of the series, compared with linear PCA.

pyhctsa.operations.nonlinearity.fnn(y[, ...])

How the fraction of false nearest neighbors falls as the embedding dimension increases.

pyhctsa.operations.nonlinearity.fractal_dimensions(y)

The spectrum of generalized (fractal) dimensions of the delay embedding, estimated from nearest-neighbor distances.

pyhctsa.operations.nonlinearity.gp_corr_sum(y)

How the number of close pairs of points in the delay embedding grows with distance (the correlation sum and its scaling).

pyhctsa.operations.nonlinearity.largest_lyap(y)

Largest Lyapunov exponent: how nearest-neighbor trajectories diverge, and the scaling of that divergence.

pyhctsa.operations.nonlinearity.lyap_spec(y)

The spectrum of Lyapunov exponents of the delay-embedded trajectory.

pyhctsa.operations.nonlinearity.persistent_homology(y)

Persistent homology of the delay embedding: the lifetimes of its loops and components.

pyhctsa.operations.nonlinearity.rqa(y[, ...])

Recurrence quantification analysis (RQA) of the delay-embedded series.

pyhctsa.operations.nonlinearity.recurrence_times(y)

Recurrence-time statistics from a recurrence plot.

pyhctsa.operations.nonlinearity.return_time(y)

Analysis of the histogram of return times.

pyhctsa.operations.nonlinearity.takens_estimator(y)

Takens' estimator of the correlation dimension, at the length scale enclosing a fixed fraction of pairs.

pyhctsa.operations.nonlinearity.tisean_c1(y)

Information dimension by the fixed-mass method (TISEAN's c1).

Physics

pyhctsa.operations.physics.walker(y[, ...])

Simulates a hypothetical walker moving through the time domain.

pyhctsa.operations.physics.force_potential(y)

Couple a time series to a driven dynamical system.

pyhctsa.operations.physics.kramers_moyal(y)

How the series' average drift and noise intensity depend on its current level, from its increments.

Pre-Process

pyhctsa.operations.pre_process.preproc_compare(y)

How time-series properties change after a preprocessing step.

pyhctsa.operations.pre_process.preproc_iterate(y)

How time-series properties change as a preprocessing step is applied more and more strongly.

pyhctsa.operations.pre_process.preproc_model_fit(y)

How the error of an AR model changes after preprocessing the series.

pyhctsa.operations.pre_process.preproc_schreiber_denoise(y)

Nonlinear noise reduction, and how it changes the series.

Scaling

pyhctsa.operations.scaling.fluctuation_analysis(x)

Implements fluctuation analysis by a variety of methods.

pyhctsa.operations.scaling.mma(y[, ...])

Scale-dependent estimates of multifractal scaling in a time series.

pyhctsa.operations.scaling.higuchi_fd(y[, kmax])

Higuchi's fractal dimension of a time series.

pyhctsa.operations.scaling.mfdfa(y[, ...])

Multifractal detrended fluctuation analysis (MFDFA): the multifractal spectrum of a time series.

Spectral

pyhctsa.operations.spectral.phase_amp_coupling(y)

Cross-frequency phase-amplitude coupling.

pyhctsa.operations.spectral.spectral_summaries(y)

Statistics of the power spectrum of a time series.

pyhctsa.operations.spectral.spectral_summaries_phase(y)

Statistics of the Fourier phase spectrum of a time series.

pyhctsa.operations.spectral.specparam(y[, ...])

Separates the power spectrum into aperiodic (1/f) and periodic (oscillatory) components.

pyhctsa.operations.spectral.cepstrum(y[, ...])

Cepstral statistics: harmonic (comb) structure of the power spectrum.

pyhctsa.operations.spectral.bicoherence(y[, ...])

Quadratic phase coupling between frequencies, from the squared bicoherence.

pyhctsa.operations.spectral.envelope_stats(y)

Statistics of the amplitude envelope of the full series and of its dominant oscillation.

pyhctsa.operations.spectral.phase_fluctuation_scaling(y)

Multi-scale fluctuation analysis of the instantaneous phase of the dominant oscillation.

pyhctsa.operations.spectral.sinusoid_fit(y)

Fit sinusoids or a Fourier series to the time series.

pyhctsa.operations.spectral.spectral_time_freq(y)

Time-varying spectral statistics from a spectrogram.

pyhctsa.operations.spectral.rhythmicity(y[, ...])

Phase-persistence ("rhythmicity") spectrum of a time series.

Stationarity

pyhctsa.operations.stationarity.local_distributions(y)

Compares the distribution in consecutive time-series segments.

pyhctsa.operations.stationarity.dyn_win(y[, ...])

How stationarity estimates depend on the number of time-series subsegments.

pyhctsa.operations.stationarity.moment_corr(x)

Correlations between simple statistics in local windows of a time series.

pyhctsa.operations.stationarity.simple_stats(x)

Basic statistics about an input time series.

pyhctsa.operations.stationarity.local_extrema(y)

How local maximums and minimums vary across the time series.

pyhctsa.operations.stationarity.kpss_test(y)

Performs the KPSS (Kwiatkowski-Phillips-Schmidt-Shin) stationarity test.

pyhctsa.operations.stationarity.range_evolve(y)

Analyze how the time-series range changes across time.

pyhctsa.operations.stationarity.drifting_mean(y)

Measures mean drift by analyzing mean and variance in time-series subsegments.

pyhctsa.operations.stationarity.local_global(y)

Compare local statistics to global statistics of a time series.

pyhctsa.operations.stationarity.fit_polynomial(y)

Goodness of a polynomial fit to a time series

pyhctsa.operations.stationarity.ts_length(y)

Length of an input data vector.

pyhctsa.operations.stationarity.std_nth_deriv(y)

Standard deviation of the nth derivative of the time series.

pyhctsa.operations.stationarity.trend(y)

Quantifies various measures of trend in a time series.

pyhctsa.operations.stationarity.stat_av(y[, ...])

Simple mean-stationarity metric using the StatAv measure.

pyhctsa.operations.stationarity.sliding_window(y)

Sliding window measures of stationarity.

pyhctsa.operations.stationarity.ramping_windows(y)

Monotonic trend ('ramping') in windowed statistics.

pyhctsa.operations.stationarity.slow_feature_analysis(y)

Slow feature analysis of windowed statistics.

pyhctsa.operations.stationarity.pp_test(y[, ...])

Phillips-Perron unit-root test statistics and p-values.

pyhctsa.operations.stationarity.peak_intervals(y)

Statistics on the prominences of, and intervals between, the peaks of a time series.

pyhctsa.operations.stationarity.drifting_auto_corr(y)

Drift in a lag-tau (auto)correlation via a cumulative-sum test.

pyhctsa.operations.stationarity.drifting_mean_cusum(y)

Drift in the mean, via a cumulative-sum (CUSUM) test.

pyhctsa.operations.stationarity.spread_random_local(y)

How local statistics vary across many overlapping segments of the time series.

pyhctsa.operations.stationarity.std_nth_deriv_change(y)

How the output of std_nth_deriv() changes with the order of the derivative.

pyhctsa.operations.stationarity.nstat_z(y[, ...])

Cross-forecast errors of zeroth-order time-series models.

Surrogates

pyhctsa.operations.surrogates.surrogate_test(x)

Analyzes test statistics obtained from surrogate time series.

pyhctsa.operations.surrogates.surrogates(y)

Surrogate data test of a nonlinear statistic, tc3 or trev (hctsa's SD_Surrogates).

Symbolic

pyhctsa.operations.symbolic.surprise(y[, ...])

Quantifies how surprised you would be of the next data point given recent memory.

pyhctsa.operations.symbolic.motif_two(y[, ...])

Compute local motifs in a binary symbolization of the input time series.

pyhctsa.operations.symbolic.motif_three(y[, ...])

Motifs in a coarse-graining of a time series to a 3-letter alphabet.

pyhctsa.operations.symbolic.binary_stretch(x)

Homogeneity of the gaps between like symbols in a binarized time series.

pyhctsa.operations.symbolic.binary_stats(y)

Compute statistics on a binary symbolisation of the input time series.

pyhctsa.operations.symbolic.transition_matrix(y)

Transition probabilities between time-series states.

pyhctsa.operations.symbolic.transition_p_alphabet(y)

How transition probabilities change with alphabet size.

pyhctsa.operations.symbolic.coarse_grain(y, ...)

Coarse-grains a continuous time series to a discrete alphabet.

pyhctsa.operations.symbolic.binary_stats_ar1(y)

Binary run-length statistics normalized against an AR(1) null.

Wavelet

pyhctsa.operations.wavelet.wl_coeffs(y[, ...])

Wavelet decomposition of the time series.

pyhctsa.operations.wavelet.detail_coeffs(y)

Detail coefficients of a wavelet decomposition.

pyhctsa.operations.wavelet.cwt(y[, w_name, ...])

Continuous wavelet transform of a time series.

pyhctsa.operations.wavelet.dwt_coeff(y[, ...])

Discrete wavelet transform coefficients.

pyhctsa.operations.wavelet.scal_2_freq(y[, ...])

Frequency components in a periodic time series.

pyhctsa.operations.wavelet.wfbm(x)

Estimates of the fractal index (Hurst exponent) of a signal.

pyhctsa.operations.wavelet.modwt_var(y[, ...])

Multiscale variance decomposition via the maximal overlap DWT.

pyhctsa.operations.wavelet.wpd_best_tree(y)

Adaptive best-basis wavelet packet decomposition.