Recursively Applied and Projected MUSIC (RAP-MUSIC) source-localisation algorithm. More...
#include "../inv_global.h"#include "inv_dipole.h"#include <mne/mne_forward_solution.h>#include <inv/inv_source_estimate.h>#include <time.h>#include <QVector>#include <vector>#include <Eigen/Core>#include <Eigen/SVD>#include <Eigen/LU>

Go to the source code of this file.
Classes | |
| struct | INVLIB::Pair |
| Index pair representing two grid points evaluated together in the RAP MUSIC subspace scan. More... | |
| class | INVLIB::InvRapMusic |
| RAP MUSIC (Recursively Applied and Projected Multiple Signal Classification) source localization algorithm. More... | |
Namespaces | |
| namespace | INVLIB |
| Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting). | |
Macros | |
| #define | NOT_TRANSPOSED 0 |
| #define | IS_TRANSPOSED 1 |
Recursively Applied and Projected MUSIC (RAP-MUSIC) source-localisation algorithm.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
INVLIB::InvRapMusic implements the RAP-MUSIC scanning algorithm of Mosher & Leahy, IEEE Trans. Signal Process. 47(2), 332-340 (1999). The algorithm decomposes the measurement covariance to obtain the signal subspace, scans the leadfield for the grid-point pair with the largest subspace-correlation, projects that pair out of the signal subspace, and repeats until the desired number of sources is found or the correlation drops below the user-supplied threshold. Outputs are returned as both an InvSourceEstimate (dense grid with active vertices populated) and a list of InvDipolePair records carrying per-iteration orientation and correlation diagnostics.
Definition in file inv_rap_music.h.
| #define IS_TRANSPOSED 1 |
Defines IS_TRANSPOSED.
Definition at line 63 of file inv_rap_music.h.
| #define NOT_TRANSPOSED 0 |
Defines NOT_TRANSPOSED.
Definition at line 62 of file inv_rap_music.h.