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

Definition of the InvDipoleFitData class. 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>
Include dependency graph for inv_dipole_fit_data.cpp:

Go to the source code of this file.

Macros

#define FIFFV_COIL_CTF_GRAD   5001
#define FIFFV_COIL_CTF_REF_MAG   5002
#define FIFFV_COIL_CTF_REF_GRAD   5003
#define FIFFV_COIL_CTF_OFFDIAG_REF_GRAD   5004

Functions

void print_fields (const Eigen::Vector3f &rd, const Eigen::Vector3f &Q, float time, float integ, InvDipoleFitData *fit, MNEMeasData *data)
InvDipoleForwarddipole_forward (InvDipoleFitData *d, float **rd, int ndip, InvDipoleForward *old)
 Compute the forward solution for one or more dipoles, applying projections and whitening.

Variables

constexpr int FAIL = -1
constexpr int OK = 0

Detailed Description

Definition of the InvDipoleFitData class.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu
Since
0.1.0
Date
December, 2016

LICENSE

Copyright (C) 2016, Lorenz Esch, Matti Hamalainen, Christoph Dinh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of MNE-CPP authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file inv_dipole_fit_data.cpp.

Macro Definition Documentation

◆ FIFFV_COIL_CTF_GRAD

#define FIFFV_COIL_CTF_GRAD   5001

Definition at line 80 of file inv_dipole_fit_data.cpp.

◆ FIFFV_COIL_CTF_OFFDIAG_REF_GRAD

#define FIFFV_COIL_CTF_OFFDIAG_REF_GRAD   5004

Definition at line 92 of file inv_dipole_fit_data.cpp.

◆ FIFFV_COIL_CTF_REF_GRAD

#define FIFFV_COIL_CTF_REF_GRAD   5003

Definition at line 88 of file inv_dipole_fit_data.cpp.

◆ FIFFV_COIL_CTF_REF_MAG

#define FIFFV_COIL_CTF_REF_MAG   5002

Definition at line 84 of file inv_dipole_fit_data.cpp.

Function Documentation

◆ dipole_forward()

InvDipoleForward * dipole_forward ( InvDipoleFitData * d,
float ** rd,
int ndip,
InvDipoleForward * old )

Compute the forward solution for one or more dipoles, applying projections and whitening.

Definition at line 904 of file inv_dipole_fit_data.cpp.

◆ print_fields()

void print_fields ( const Eigen::Vector3f & rd,
const Eigen::Vector3f & Q,
float time,
float integ,
InvDipoleFitData * fit,
MNEMeasData * data )

Definition at line 862 of file inv_dipole_fit_data.cpp.

Variable Documentation

◆ FAIL

int FAIL = -1
constexpr

Definition at line 95 of file inv_dipole_fit_data.cpp.

◆ OK

int OK = 0
constexpr

Definition at line 96 of file inv_dipole_fit_data.cpp.