Declaration of BadChannelDetect — automated detection of bad MEG/EEG channels. More...


Go to the source code of this file.
Classes | |
| struct | UTILSLIB::BadChannelDetectParams |
| Bad-channel detection parameters (defined outside class to avoid Clang/GCC default-argument issues with nested structs). More... | |
| class | UTILSLIB::BadChannelDetect |
| Automated detection of bad MEG/EEG channels using flat, variance, and correlation criteria. More... | |
Namespaces | |
| namespace | UTILSLIB |
| Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms). | |
Declaration of BadChannelDetect — automated detection of bad MEG/EEG channels.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Three complementary detection strategies are provided:
dZThresh standard deviations above the median across channels (muscle artefact, loose connection, large drift).iNeighbours channels is below dCorrThresh. This catches channels with coherent but spurious signals that pass the variance test.The three detectors can be run independently or combined via detect() which applies all three and returns the union of bad channel row indices.
Definition in file bad_channel_detect.h.