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

Implementation of the Gamma-MAP / SBL solver. More...

#include "inv_gamma_map.h"
#include <cmath>
#include <algorithm>
Include dependency graph for inv_gamma_map.cpp:

Go to the source code of this file.

Detailed Description

Implementation of the Gamma-MAP / SBL solver.

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.0
Date
April 2026

Implements the EM / fixed-point update loop for the per-source variance hyperparameters \(\gamma_{i}\): at each step build the model covariance \(\Sigma_{b} = \sigma_{n}^{2} I + G\Gamma G^{T}\), compute the closed-form posterior mean for the source amplitudes, update \(\gamma_{i}\) from the row-norm contributions and prune hyperparameters that have collapsed below threshold. The pruned active-source list and surviving \(\gamma\) vector are assembled into the final InvGammaMapResult.

Definition in file inv_gamma_map.cpp.