Real-time stimulus-locked averaging worker producing running evoked responses. More...
#include "../dsp_global.h"#include <fiff/fiff_evoked_set.h>#include <fiff/fiff_info.h>#include <QThread>#include <QSharedPointer>#include <QObject>#include <Eigen/Core>

Go to the source code of this file.
Classes | |
| class | RTPROCESSINGLIB::RtAveragingWorker |
| Background worker thread that accumulates and averages epochs in real time. More... | |
| class | RTPROCESSINGLIB::RtAveraging |
| Controller that manages RtAveragingWorker for online epoch averaging with baseline correction. More... | |
Namespaces | |
| namespace | RTPROCESSINGLIB |
Real-time stimulus-locked averaging worker producing running evoked responses.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
RtAveragingWorker accumulates fixed-length epochs around trigger events detected on a user-specified stim channel and maintains a running arithmetic mean per condition, yielding a FIFFLIB::FiffEvokedSet that updates as new data arrives. The worker is designed to run on its own QThread so the GUI and acquisition pipeline remain responsive even at high sample rates and large evoked counts. RtAveraging is the thin QObject wrapper that owns the worker, forwards configuration changes (pre/post-stim samples, baseline window, average count) and re-emits the worker's result signal back to the main thread.
Baseline correction is applied per epoch on the configured baseline window before accumulation, and the numAverages parameter selects between a strict moving-window mean and a cumulative running mean.
Definition in file rt_averaging.h.