Implementation of the dipole-fit workspace setup, noise-covariance scaling and forward-function selection. More...
#include <fwd/fwd_types.h>#include "inv_dipole_fit_data.h"#include "inv_guess_data.h"#include <mne/mne_meas_data.h>#include <mne/mne_meas_data_set.h>#include <mne/mne_proj_item.h>#include <mne/mne_cov_matrix.h>#include "inv_ecd.h"#include <fiff/fiff_stream.h>#include <fiff/fiff_info.h>#include <fiff/fiff_coord_trans.h>#include <fwd/fwd_bem_model.h>#include <mne/mne_surface.h>#include <fwd/fwd_comp_data.h>#include <math/simplex_algorithm.h>#include <math/sphere.h>#include <Eigen/Dense>#include <QFile>#include <QTextStream>#include <QCoreApplication>#include <QDebug>#include <cmath>
Go to the source code of this file.
Functions | |
| std::unique_ptr< InvDipoleForward > | dipole_forward (InvDipoleFitData *d, float **rd, int ndip, std::unique_ptr< InvDipoleForward > old) |
| Compute the forward solution for one or more dipoles, applying projections and whitening. | |
Variables | |
| constexpr int | FAIL = -1 |
| constexpr int | OK = 0 |
Implementation of the dipole-fit workspace setup, noise-covariance scaling and forward-function selection.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Implements setup_dipole_fit_data (read forward model, channel list, noise covariance, SSP projectors and CTF compensation from disk), setup_forward_model (pick MEG/EEG sphere vs. BEM function pointers), ad_hoc_noise (build a diagonal covariance from per-channel-type standard deviations) and scale_noise_cov (rescale the noise covariance for a given number of averages). Refactored from dipole_fit_setup.c in MNE-C.
Definition in file inv_dipole_fit_data.cpp.
| std::unique_ptr< InvDipoleForward > dipole_forward | ( | InvDipoleFitData * | d, |
| float ** | rd, | ||
| int | ndip, | ||
| std::unique_ptr< InvDipoleForward > | old ) |
Compute the forward solution for one or more dipoles, applying projections and whitening.
Definition at line 852 of file inv_dipole_fit_data.cpp.
|
constexpr |
Definition at line 61 of file inv_dipole_fit_data.cpp.
|
constexpr |
Definition at line 62 of file inv_dipole_fit_data.cpp.