pyhctsa.operations.pre_process.preproc_compare

pyhctsa.operations.pre_process.preproc_compare(y, detrend_meth='medianf')

Compare time-series properties before and after pre-processing.

Applies a specified pre-processing transformation to the input time series and evaluates how selected statistical properties change relative to the original series.

Parameters:
y : array-like

Input time series.

detrend_meth : str, optional

Pre-processing method to apply.

  • "poly<n>" : polynomial detrend of order n (1 <= n <= 9)

  • "diff<n>" : n successive differences

  • "medianf<n>": median filter, window length n (odd)

  • "rav<n>" : moving average, window size n

  • "resample_<P>_<Q>" : resample by factor P/Q

Default is "medianf".

Returns:

Comparison of stationarity and distributional measures between the original and transformed time series.

Return type:

dict