cogpy.triggered.template

Template estimation, fitting, and subtraction primitives.

These operate on epoch arrays and continuous signals to support template-based artifact removal or signal extraction.

Functions

estimate_template(epochs, *[, method, event_dim])

Estimate a template waveform from stacked epochs.

fit_scaling(epochs, template)

Fit per-event scaling coefficients via least-squares projection.

subtract_template(signal, event_samples, ...)

Subtract a template waveform at each event location in a continuous signal.