v2.0.0
Loading...
Searching...
No Matches
inv_label_time_course.cpp File Reference

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>
Include dependency graph for inv_label_time_course.cpp:

Go to the source code of this file.

Detailed Description

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

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

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.