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

Real-time noise power-spectral-density estimation from streaming data blocks. More...

#include "../dsp_global.h"
#include <fiff/fiff_info.h>
#include <QThread>
#include <QMutex>
#include <QSharedPointer>
#include <Eigen/Core>
Include dependency graph for rt_noise.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RTPROCESSINGLIB::RtNoiseWorker
 Background worker that computes a noise power spectral density estimate from accumulated data blocks. More...
class  RTPROCESSINGLIB::RtNoise
 Controller that manages RtNoiseWorker for real-time noise spectrum estimation. More...

Namespaces

namespace  RTPROCESSINGLIB

Detailed Description

Real-time noise power-spectral-density estimation from streaming data blocks.

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

RtNoiseWorker accumulates a configurable number of contiguous data blocks, applies an FFT of user-defined length and averages the squared magnitude spectra into a running noise-PSD estimate. The estimator follows the classical periodogram-averaging recipe (Welch with rectangular windowing and no overlap), so longer accumulation windows trade temporal responsiveness for spectral variance reduction. RtNoise is the QObject front-end that owns the worker, forwards configuration changes, and re- emits the PSD result back on the GUI thread.

This estimate is what feeds the live noise-spectrum display and provides a sanity-check companion to RtCov whenever a quick frequency-domain view of the noise floor is more informative than the full channel–channel covariance matrix.

Definition in file rt_noise.h.