High-level driver for sequential dipole fitting. More...
#include <inv_dipole_fit.h>
Public Types | |
| typedef QSharedPointer< InvDipoleFit > | SPtr |
| typedef QSharedPointer< const InvDipoleFit > | ConstSPtr |
Public Member Functions | |
| InvDipoleFit (InvDipoleFitSettings *p_settings) | |
| virtual | ~InvDipoleFit ()=default |
| InvEcdSet | calculateFit () const |
Static Public Member Functions | |
| static bool | fit_dipoles (const QString &dataname, MNELIB::MNEMeasData *data, InvDipoleFitData *fit, InvGuessData *guess, float tmin, float tmax, float tstep, float integ, int verbose, InvEcdSet &p_set) |
| static bool | fit_dipoles_raw (const QString &dataname, MNELIB::MNERawData *raw, MNELIB::mneChSelection sel, InvDipoleFitData *fit, InvGuessData *guess, float tmin, float tmax, float tstep, float integ, int verbose, InvEcdSet &p_set) |
| static bool | fit_dipoles_raw (const QString &dataname, MNELIB::MNERawData *raw, MNELIB::mneChSelection sel, InvDipoleFitData *fit, InvGuessData *guess, float tmin, float tmax, float tstep, float integ, int verbose) |
High-level driver for sequential dipole fitting.
InvDipoleFit orchestrates the complete dipole-fit pipeline: it sets up the forward model via InvDipoleFitData, computes initial guess grids via InvGuessData, reads averaged or raw data, and fits an equivalent current dipole (ECD) at each requested time point.
Refactored from fit_dipoles.c / dipole_fit_setup.c (MNE-C).
Definition at line 80 of file inv_dipole_fit.h.
| typedef QSharedPointer<const InvDipoleFit> INVLIB::InvDipoleFit::ConstSPtr |
Const shared pointer type for InvDipoleFit.
Definition at line 84 of file inv_dipole_fit.h.
| typedef QSharedPointer<InvDipoleFit> INVLIB::InvDipoleFit::SPtr |
Shared pointer type for InvDipoleFit.
Definition at line 83 of file inv_dipole_fit.h.
|
explicit |
Constructs Dipole Fit algorithm.
| [in] | p_settings | The dipole fit settings. |
Definition at line 186 of file inv_dipole_fit.cpp.
|
virtualdefault |
Destructs the Dipole Fit.
| InvEcdSet InvDipoleFit::calculateFit | ( | ) | const |
Execute the dipole fit using the stored settings.
Definition at line 192 of file inv_dipole_fit.cpp.
|
static |
Fit a single dipole to each time point of averaged data.
Refactored: fit_dipoles (fit_dipoles.c)
| [in] | dataname | Data file name. |
| [in] | data | The measured data. |
| [in] | fit | Precomputed fitting data. |
| [in] | guess | The initial guesses. |
| [in] | tmin | Fit start time (s). |
| [in] | tmax | Fit end time (s). |
| [in] | tstep | Time step to use (s). |
| [in] | integ | Integration time (s). |
| [in] | verbose | Verbose output. |
| [out] | p_set | The fitted dipole set. |
Definition at line 323 of file inv_dipole_fit.cpp.
|
static |
Fit dipoles to raw data (convenience overload without output set).
Refactored: fit_dipoles_raw (fit_dipoles.c)
| [in] | dataname | Data file name. |
| [in] | raw | The raw data description. |
| [in] | sel | Channel selection to use. |
| [in] | fit | Precomputed fitting data. |
| [in] | guess | The initial guesses. |
| [in] | tmin | Fit start time (s). |
| [in] | tmax | Fit end time (s). |
| [in] | tstep | Time step to use (s). |
| [in] | integ | Integration time (s). |
| [in] | verbose | Verbose output. |
Definition at line 428 of file inv_dipole_fit.cpp.
|
static |
Fit a single dipole to each time point of raw data.
Reads data in overlapping segments of SEG_LEN seconds and extracts values at each requested time point.
Refactored: fit_dipoles_raw (fit_dipoles.c)
| [in] | dataname | Data file name. |
| [in] | raw | The raw data description. |
| [in] | sel | Channel selection to use. |
| [in] | fit | Precomputed fitting data. |
| [in] | guess | The initial guesses. |
| [in] | tmin | Fit start time (s). |
| [in] | tmax | Fit end time (s). |
| [in] | tstep | Time step to use (s). |
| [in] | integ | Integration time (s). |
| [in] | verbose | Verbose output. |
| [out] | p_set | The fitted dipole set. |
Definition at line 361 of file inv_dipole_fit.cpp.