Linear channel derivations — bipolar montages and arbitrary weighted recombinations. More...
#include "dsp_global.h"#include <QMap>#include <QPair>#include <QString>#include <QStringList>#include <QVector>#include <Eigen/Core>

Go to the source code of this file.
Classes | |
| struct | UTILSLIB::DerivationRule |
| A single derivation rule mapping input channels (with weights) to one output channel. More... | |
| class | UTILSLIB::ChannelDerivation |
| Channel derivation and re-referencing utilities. More... | |
Namespaces | |
| namespace | UTILSLIB |
| Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms). | |
Linear channel derivations — bipolar montages and arbitrary weighted recombinations.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
ChannelDerivation builds an explicit derivation matrix D so that derived = D · raw, where each output row is a weighted linear combination of one or more input channels. Two common use cases are supported directly: bipolar derivations of the form (anode − cathode) (Fp1-F7, F7-T3, …), which are standard in clinical EEG, and arbitrary sparse re-referencing schemes such as Hjorth Laplacian, double-banana, or custom multi-channel sums.
The derivation matrix is built once and then applied to every incoming block; channel labels and types are updated consistently so downstream processing (averaging, source localisation) sees a coherent montage.
Definition in file channel_derivation.h.