Data Transformations and Filters#

Filter and Data Transformation with a familiar algorithm interface.

Filter#

ButterworthFilter(order, cutoff_freq_hz, *)

Apply a butterworth filter using the transformer interface.

FirFilter(order, cutoff_freq_hz, *[, ...])

Apply a fir filter using the transformer interface.

CwtFilter([wavelet, center_frequency_hz])

Apply a Continuous Wavelet Transform (CWT) with a single fixed wavelet width as a filter.

SavgolFilter(window_length_s, polyorder_rel)

Apply a Savgol filter to a time series.

GaussianFilter([sigma_s])

Apply a Gaussian filter to along the time axis of a timeseries signal.

EpflGaitFilter([zero_phase])

A filter developed by EPFL to enhance gait related signals in noisy IMU data from lower-back sensors.

EpflDedriftFilter([zero_phase])

A custom IIR filter developed by EPFL to remove baseline drift.

EpflDedriftedGaitFilter([zero_phase])

A filter combining the EpflDedriftFilter and EpflGaitFilter.

Transformations#

Resample([target_sampling_rate_hz, ...])

Resample the input data to a specified target sampling rate using scipy.signal.resample.

Pad(pad_len_s, *[, mode, constant_values])

Pad the input data using various padding strategies.

Crop(crop_len_s)

Crop the input data to by removing a specified amount of samples from the beginning and end of the data.

Utilities#

chain_transformers(data, transformers, **kwargs)

Chain multiple transformers together.

Base Classes#

Base classes for all data transformers and filters.

BaseTransformer()

Base class for all data transformers.

BaseFilter()

Base class for all filters.

FixedFilter([zero_phase])

Base class for filters with fixed coefficients designed using the typical "ba" parameter format.

ScipyFilter(order, cutoff_freq_hz, *[, ...])

Base class for generic filters using the scipy filter functions.

Docu-helper#

base_filter_docfiller(func)

Decorator to fill common parts of the docstring for subclasses of BaseFilter.

fixed_filter_docfiller(func)

Decorator to fill common parts of the docstring for subclasses of FixedFilter.

scipy_filter_docfiller(func)

Decorator to fill common parts of the docstring for subclasses of ScipyFilter.