cogpy.decomposition.scores

Score processing for decomposition factor time series.

Standalone functions for smoothing, envelope removal, thresholding, and spike extraction on factor score DataArrays.

Functions

get_score_dict(scx)

Serialise factor scores to a plain dict.

scx_bandpass(scx, wl, wh, order[, axis])

Bandpass-filter factor scores.

scx_gaussian(scx[, sigma])

Smooth factor scores with a Gaussian filter.

scx_lowerenv(scx)

Remove lower envelope from factor scores.

scx_process(scx[, return_all, sigma, quantile])

Full score processing pipeline: smooth → remove envelope → threshold.

scx_spikes(scx[, max_halfdur, return_trace])

Extract spike-like events from factor scores.

scx_threshold(scx[, quantile])

Threshold factor scores at a quantile.