MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Dipole Fit Data implementation. More...
#include <dipole_fit_data.h>
Public Types | |
typedef QSharedPointer< DipoleFitData > | SPtr |
typedef QSharedPointer< const DipoleFitData > | ConstSPtr |
Public Member Functions | |
DipoleFitData () | |
virtual | ~DipoleFitData () |
Static Public Member Functions | |
static int | setup_forward_model (DipoleFitData *d, MNELIB::MneCTFCompDataSet *comp_data, FWDLIB::FwdCoilSet *comp_coils) |
static MNELIB::MneCovMatrix * | ad_hoc_noise (FWDLIB::FwdCoilSet *meg, FWDLIB::FwdCoilSet *eeg, float grad_std, float mag_std, float eeg_std) |
static int | make_projection (const QList< QString > &projnames, const QList< FIFFLIB::FiffChInfo > &chs, int nch, MNELIB::MneProjOp **res) |
static int | scale_noise_cov (DipoleFitData *f, int nave) |
static int | scale_dipole_fit_noise_cov (DipoleFitData *f, int nave) |
static int | select_dipole_fit_noise_cov (DipoleFitData *f, mshMegEegData d) |
static DipoleFitData * | setup_dipole_fit_data (const QString &mriname, const QString &measname, const QString &bemname, Eigen::Vector3f *r0, FWDLIB::FwdEegSphereModel *eeg_model, int accurate_coils, const QString &badname, const QString &noisename, float grad_std, float mag_std, float eeg_std, float mag_reg, float grad_reg, float eeg_reg, int diagnoise, const QList< QString > &projnames, int include_meg, int include_eeg) |
static bool | fit_one (DipoleFitData *fit, GuessData *guess, float time, float *B, int verbose, ECD &res) |
static int | compute_dipole_field (DipoleFitData *d, float *rd, int whiten, float **fwd) |
static DipoleForward * | dipole_forward_one (DipoleFitData *d, float *rd, DipoleForward *old) |
Public Attributes | |
FIFFLIB::FiffCoordTransOld * | mri_head_t |
FIFFLIB::FiffCoordTransOld * | meg_head_t |
int | coord_frame |
QList< FIFFLIB::FiffChInfo > | chs |
int | nmeg |
int | neeg |
QStringList | ch_names |
FIFFLIB::FiffSparseMatrix * | pick |
FWDLIB::FwdCoilSet * | meg_coils |
FWDLIB::FwdCoilSet * | eeg_els |
float | r0 [3] |
QString | bemname |
FWDLIB::FwdEegSphereModel * | eeg_model |
FWDLIB::FwdBemModel * | bem_model |
dipoleFitFuncs | sphere_funcs |
dipoleFitFuncs | bem_funcs |
dipoleFitFuncs | funcs |
dipoleFitFuncs | mag_dipole_funcs |
int | fixed_noise |
MNELIB::MneCovMatrix * | noise_orig |
MNELIB::MneCovMatrix * | noise |
int | nave |
MNELIB::MneProjOp * | proj |
int | column_norm |
int | fit_mag_dipoles |
void * | user |
fitUserFreeFunc | user_free |
Dipole Fit Data implementation.
Implements the dipole fit data parser (Replaces *dipoleFitData,dipoleFitDataRec struct of MNE-C fit_types.h).
Definition at line 109 of file dipole_fit_data.h.
typedef QSharedPointer<const DipoleFitData> INVERSELIB::DipoleFitData::ConstSPtr |
Const shared pointer type for DipoleFitData.
Definition at line 113 of file dipole_fit_data.h.
typedef QSharedPointer<DipoleFitData> INVERSELIB::DipoleFitData::SPtr |
Shared pointer type for DipoleFitData.
Definition at line 112 of file dipole_fit_data.h.
|
explicit |
Default Constructor
Definition at line 3337 of file dipole_fit_data.cpp.
|
virtual |
Destructs the Dipole Fit Data Refactored: free_dipole_fit_data (dipole_fit_setup.c)
Definition at line 3370 of file dipole_fit_data.cpp.
|
static |
Fit a single dipole to the given data Refactored: fit_one (fit_dipoles.c)
[in] | fit | Precomputed fitting data. |
[in] | guess | The initial guesses. |
[in] | time | Which time is it?. |
[in] | B | The field to fit. |
[in] | verbose. | |
[in] | res | The fitted dipole. |
Definition at line 4671 of file dipole_fit_data.cpp.
|
static |
mriname | This gives the MRI/head transform. |
measname | This gives the MEG/head transform and sensor locations. |
bemname | BEM model. |
r0 | Sphere model origin in head coordinates (optional). |
eeg_model | EEG sphere model definition. |
accurate_coils | Use accurate coil definitions?. |
badname | Bad channels list. |
noisename | Noise covariance matrix. |
grad_std | Standard deviations for the ad-hoc noise cov (planar gradiometers). |
mag_std | Ditto for magnetometers. |
eeg_std | Ditto for EEG. |
mag_reg | Noise-covariance regularization factors. |
diagnoise | Use only the diagonal elements of the noise-covariance matrix. |
projnames | SSP file names. |
include_meg | Include MEG in the fitting?. |
Definition at line 3868 of file dipole_fit_data.cpp.
dipoleFitFuncs INVERSELIB::DipoleFitData::bem_funcs |
These are the BEM forward functions.
Definition at line 211 of file dipole_fit_data.h.
FWDLIB::FwdBemModel* INVERSELIB::DipoleFitData::bem_model |
BEM model definition.
Definition at line 208 of file dipole_fit_data.h.
QString INVERSELIB::DipoleFitData::bemname |
Using a BEM?.
Definition at line 205 of file dipole_fit_data.h.
QStringList INVERSELIB::DipoleFitData::ch_names |
List of all channel names.
Definition at line 200 of file dipole_fit_data.h.
QList<FIFFLIB::FiffChInfo> INVERSELIB::DipoleFitData::chs |
Channels.
Definition at line 197 of file dipole_fit_data.h.
int INVERSELIB::DipoleFitData::column_norm |
What kind of column normalization to apply to the forward solution.
Definition at line 220 of file dipole_fit_data.h.
int INVERSELIB::DipoleFitData::coord_frame |
Common coordinate frame.
Definition at line 196 of file dipole_fit_data.h.
FWDLIB::FwdCoilSet* INVERSELIB::DipoleFitData::eeg_els |
EEG electrode definitions.
Definition at line 203 of file dipole_fit_data.h.
FWDLIB::FwdEegSphereModel* INVERSELIB::DipoleFitData::eeg_model |
EEG sphere model definition.
Definition at line 207 of file dipole_fit_data.h.
int INVERSELIB::DipoleFitData::fit_mag_dipoles |
Fit magnetic dipoles?.
Definition at line 221 of file dipole_fit_data.h.
int INVERSELIB::DipoleFitData::fixed_noise |
Were fixed noise values used rather than a noise-covariance matrix read from a file.
Definition at line 215 of file dipole_fit_data.h.
dipoleFitFuncs INVERSELIB::DipoleFitData::funcs |
Points to one of the two above.
Definition at line 212 of file dipole_fit_data.h.
dipoleFitFuncs INVERSELIB::DipoleFitData::mag_dipole_funcs |
Functions to fit a magnetic dipole.
Definition at line 213 of file dipole_fit_data.h.
FWDLIB::FwdCoilSet* INVERSELIB::DipoleFitData::meg_coils |
MEG coil definitions.
Definition at line 202 of file dipole_fit_data.h.
FIFFLIB::FiffCoordTransOld* INVERSELIB::DipoleFitData::meg_head_t |
MEG <-> head coordinate transformation.
Definition at line 195 of file dipole_fit_data.h.
FIFFLIB::FiffCoordTransOld* INVERSELIB::DipoleFitData::mri_head_t |
MRI <-> head coordinate transformation.
Definition at line 194 of file dipole_fit_data.h.
int INVERSELIB::DipoleFitData::nave |
How many averages does this correspond to?.
Definition at line 218 of file dipole_fit_data.h.
int INVERSELIB::DipoleFitData::neeg |
How many EEG.
Definition at line 199 of file dipole_fit_data.h.
int INVERSELIB::DipoleFitData::nmeg |
How many MEG.
Definition at line 198 of file dipole_fit_data.h.
MNELIB::MneCovMatrix* INVERSELIB::DipoleFitData::noise |
Noise covariance matrix (weighted to take the selection into account).
Definition at line 217 of file dipole_fit_data.h.
MNELIB::MneCovMatrix* INVERSELIB::DipoleFitData::noise_orig |
Noise covariance matrix (original).
Definition at line 216 of file dipole_fit_data.h.
FIFFLIB::FiffSparseMatrix* INVERSELIB::DipoleFitData::pick |
Matrix to pick data from the full data set which may contain channels we are not interested in.
Definition at line 201 of file dipole_fit_data.h.
MNELIB::MneProjOp* INVERSELIB::DipoleFitData::proj |
The projection operator to use.
Definition at line 219 of file dipole_fit_data.h.
float INVERSELIB::DipoleFitData::r0[3] |
Sphere model origin.
Definition at line 204 of file dipole_fit_data.h.
dipoleFitFuncs INVERSELIB::DipoleFitData::sphere_funcs |
These are the sphere model forward functions.
Definition at line 210 of file dipole_fit_data.h.
void* INVERSELIB::DipoleFitData::user |
User data for anything we need.
Definition at line 222 of file dipole_fit_data.h.
fitUserFreeFunc INVERSELIB::DipoleFitData::user_free |
Function to free the above.
Definition at line 223 of file dipole_fit_data.h.