Implementation of the label-aggregation modes and sign-flip computation declared in inv_label_time_course.h.
More...
#include "inv_label_time_course.h"#include <Eigen/Core>#include <Eigen/SVD>#include <cmath>#include <algorithm>#include <QDebug>#include <QMap>
Go to the source code of this file.
Implementation of the label-aggregation modes and sign-flip computation declared in inv_label_time_course.h.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Implements per-label slicing of the vertex index list, the four aggregation kernels (simple mean, sign-flipped mean, PCA-flip via Eigen's SVD, and absolute-max), and the computeSignFlip helper that derives the per-vertex ±1 alignment from the first singular vector of the label's data block — the same recipe used by mne-python so that downstream ROI averages stay numerically comparable across the two stacks.
Definition in file inv_label_time_course.cpp.