Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting). More...
Classes | |
| class | InvBeamformer |
| Computed beamformer spatial filter container. More... | |
| class | InvBeamformerCompute |
| Core beamformer math. More... | |
| class | InvDICS |
| DICS beamformer (frequency-domain). More... | |
| class | InvLCMV |
| LCMV beamformer (time-domain). More... | |
| class | InvDipoleFit |
| High-level driver for sequential dipole fitting. More... | |
| struct | dipoleFitFuncsRec |
| Forward field computation function pointers and client data for MEG and EEG dipole fitting. More... | |
| struct | FitDipUserRec |
| Workspace for the dipole fitting objective function, holding forward model, measured field, and fit limits. More... | |
| class | InvDipoleFitData |
| Dipole fit workspace holding sensor geometry, forward model, noise covariance, and projection data. More... | |
| class | InvDipoleFitSettings |
| Dipole Fit setting implementation. More... | |
| class | InvDipoleForward |
| Stores forward field matrices and SVD decomposition for magnetic dipole fitting. More... | |
| class | InvEcd |
| Single equivalent current dipole with position, orientation, amplitude, and goodness-of-fit. More... | |
| struct | bdipEcd |
| Binary-format dipole record for file I/O, storing fitted dipole parameters and error estimates. More... | |
| class | InvEcdSet |
| Holds a set of Electric Current Dipoles. More... | |
| class | InvGuessData |
| Precomputed guess point grid with forward fields for initial dipole position candidates. More... | |
| class | InvHpiDataUpdater |
| Preprocesses raw HPI coil data (SSP projection, compensation, sinusoidal model fitting) before dipole localization. More... | |
| struct | CoilParam |
| Estimated dipole parameters (position, moment, goodness-of-fit) for a single HPI coil. More... | |
| struct | HpiFitResult |
| Complete HPI fit output: per-coil dipole parameters, head-to-device transform, fit error, and head movement distance. More... | |
| class | InvHpiFit |
| HPI Fit algorithms. More... | |
| struct | DipFitError |
| Residual error and moment vector from a single magnetic dipole fit iteration. More... | |
| struct | HPISortStruct |
| Helper for sorting HPI coil dipole fits by matching each fit to the nearest expected coil position. More... | |
| class | InvHpiFitData |
| HPI Fit algorithm data structure. More... | |
| class | InvHpiModelParameters |
| Configuration parameters for the HPI signal model (line frequency, coil frequencies, sample rate, buffer size). More... | |
| class | InvSensorSet |
| Stores MEG sensor geometry (positions, orientations, weights, coil count) for a single sensor type. More... | |
| class | InvSensorSetCreator |
| Builds InvSensorSet objects from FiffInfo channel definitions, applying SSP projections and compensation. More... | |
| class | InvSignalModel |
| Generates the forward sinusoidal model matrix for HPI coil signals at known drive frequencies. More... | |
| struct | InvConnectivity |
| Pairwise source connectivity matrix with measure, directionality, and frequency/time metadata. More... | |
| struct | InvFocalDipole |
| Single focal dipole with free 3D position, moment, and fit-quality metrics. More... | |
| struct | InvSourceCoupling |
| N-tuple of correlated grid sources with orientations and correlation matrix. More... | |
| class | InvSourceEstimate |
| Source estimation. More... | |
| struct | InvToken |
| One element of a tokenised neural-source representation. More... | |
| struct | InvTokenizeOptions |
| Tokenization options controlling layer inclusion and sub-sampling. More... | |
| class | InvMinimumNorm |
| Minimum norm estimation. More... | |
| class | InvDipole |
| Stores position, orientation, and correlation of a single current dipole estimated by RAP MUSIC. More... | |
| struct | InvDipolePair |
| Pair of correlated dipole indices and orientations found by the RAP MUSIC scanning step. More... | |
| class | InvPwlRapMusic |
| Powell-accelerated RAP MUSIC variant using gradient-free optimization for refined dipole fitting. More... | |
| struct | Pair |
| Index pair representing two grid points evaluated together in the RAP MUSIC subspace scan. More... | |
| class | InvRapMusic |
| RAP MUSIC (Recursively Applied and Projected Multiple Signal Classification) source localization algorithm. More... | |
Typedefs | |
| using | dipoleFitFuncs = dipoleFitFuncsRec* |
| Pointer alias for dipoleFitFuncsRec, used throughout the dipole fitting module. | |
| typedef struct INVLIB::bdipEcd | bdipEcdRec |
| typedef struct INVLIB::Pair | Pair |
| Index pair representing two grid points evaluated together in the RAP MUSIC subspace scan. | |
Functions | |
| INVSHARED_EXPORT const char * | buildDateTime () |
| INVSHARED_EXPORT const char * | buildHash () |
| INVSHARED_EXPORT const char * | buildHashLong () |
| INVSHARED_EXPORT std::vector< InvToken > | tokenize (const InvSourceEstimate &estimate, const InvTokenizeOptions &options=InvTokenizeOptions()) |
| Serialise an InvSourceEstimate into a flat token sequence. | |
| INVSHARED_EXPORT InvSourceEstimate | fromTokens (const std::vector< InvToken > &tokens) |
| Reconstruct an InvSourceEstimate from a token sequence. | |
| std::vector< int32_t > | tokenIds (const std::vector< InvToken > &tokens) |
| std::vector< float > | tokenValues (const std::vector< InvToken > &tokens) |
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
| typedef struct INVLIB::bdipEcd INVLIB::bdipEcdRec |
| using INVLIB::dipoleFitFuncs = dipoleFitFuncsRec* |
Pointer alias for dipoleFitFuncsRec, used throughout the dipole fitting module.
Definition at line 106 of file inv_dipole_fit_data.h.
| typedef struct INVLIB::Pair INVLIB::Pair |
Index pair representing two grid points evaluated together in the RAP MUSIC subspace scan.
Declares a pair structure for index combinations used in RAP MUSIC algorithm.
|
strong |
| Enumerator | |
|---|---|
| high | |
| medium | |
| low | |
Definition at line 78 of file inv_sensor_set.h.
|
strong |
Method for inverting the beamformer denominator matrix G^H Cm^{-1} G.
| Enumerator | |
|---|---|
| Matrix | Full matrix inversion per source. |
| Single | Scalar (diagonal) inversion per source. |
Definition at line 77 of file inv_beamformer_settings.h.
|
strong |
Orientation picking mode for beamformer filters.
Definition at line 65 of file inv_beamformer_settings.h.
|
strong |
Weight normalization strategy for beamformer spatial filters.
References:
Definition at line 53 of file inv_beamformer_settings.h.
|
strong |
Enumerates the inverse estimation method that produced a source estimate.
| Enumerator | |
|---|---|
| Unknown | |
| MNE | |
| dSPM | |
| sLORETA | |
| eLORETA | |
| LCMV | |
| DICS | |
| SAM | |
| MixedNorm | |
| GammaMAP | |
| DipoleFit | |
| RapMusic | |
| PwlRapMusic | |
Definition at line 49 of file inv_types.h.
|
strong |
Enumerates the orientation constraint used during source estimation.
| Enumerator | |
|---|---|
| Unknown | |
| Fixed | |
| Free | |
| Loose | |
Definition at line 83 of file inv_types.h.
|
strong |
Enumerates the source space type underlying a source estimate.
| Enumerator | |
|---|---|
| Unknown | |
| Surface | |
| Volume | |
| Mixed | |
| Discrete | |
Definition at line 70 of file inv_types.h.
|
strong |
Token vocabulary for the InvSourceEstimate tokenization format.
IDs are organised into ranges: 0..9 Special tokens (PAD, BOS, EOS, SEP) 10..19 Metadata section markers 20..29 Grid section markers 30..39 Coupling section markers 40..49 Focal-dipole section markers 50..59 Connectivity section markers 60..69 Positions section markers 100..149 Method labels 150..169 Source-space labels 170..189 Orientation labels 200..249 Value-carrier tokens (id + continuous float) 250..279 Boolean tokens 280..299 Dimension/size tokens (id + int-as-float) 300..349 Connectivity measure name tokens 1000+ Reserved for external quantisation bins
Definition at line 99 of file inv_token.h.
| const char * INVLIB::buildDateTime | ( | ) |
Returns build date and time.
Definition at line 46 of file inv_global.cpp.
| const char * INVLIB::buildHash | ( | ) |
Returns abbreviated build git hash.
Definition at line 50 of file inv_global.cpp.
| const char * INVLIB::buildHashLong | ( | ) |
Returns full build git hash.
Definition at line 54 of file inv_global.cpp.
| INVSHARED_EXPORT InvSourceEstimate INVLIB::fromTokens | ( | const std::vector< InvToken > & | tokens | ) |
Reconstruct an InvSourceEstimate from a token sequence.
Parses a token stream previously produced by tokenize() and rebuilds the InvSourceEstimate fields (metadata, grid data, positions, couplings, focal dipoles, connectivity). Unknown or out-of-order tokens are silently skipped.
| [in] | tokens | The token sequence to decode. |
|
inline |
Extract just the integer token IDs from a token sequence (discarding continuous values). Useful for feeding into a purely discrete embedding table.
| [in] | tokens | The token sequence. |
Definition at line 261 of file inv_token.h.
| INVSHARED_EXPORT std::vector< InvToken > INVLIB::tokenize | ( | const InvSourceEstimate & | estimate, |
| const InvTokenizeOptions & | options = InvTokenizeOptions() ) |
Serialise an InvSourceEstimate into a flat token sequence.
Converts the full multimodal content of an InvSourceEstimate (grid amplitudes, positions, couplings, focal dipoles, connectivity matrices) into a linear sequence of InvToken elements. Each token carries a vocabulary ID and an optional continuous float value.
The options parameter controls which data layers are emitted and allows sub-sampling of dense grids to fit context-limited attention windows.
| [in] | estimate | The source estimate to tokenize. |
| [in] | options | Controls layer inclusion and sub-sampling (default: all layers, no sub-sampling). |
|
inline |
Extract just the continuous values from a token sequence (discarding IDs). Useful as the real-valued branch in a hybrid discrete-continuous embedding.
| [in] | tokens | The token sequence. |
Definition at line 277 of file inv_token.h.