v2.0.0
Loading...
Searching...
No Matches
rt_averaging.h File Reference

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>
Include dependency graph for rt_averaging.h:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

Real-time stimulus-locked averaging worker producing running evoked responses.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.1.0
Date
March 2026

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.