37#ifndef FWDEEGSPHEREMODEL_H
38#define FWDEEGSPHEREMODEL_H
58#include <QSharedPointer>
97 typedef QSharedPointer<FwdEegSphereModel>
SPtr;
98 typedef QSharedPointer<const FwdEegSphereModel>
ConstSPtr;
122 const Eigen::VectorXf& rads,
123 const Eigen::VectorXf& sigmas);
171 const Eigen::VectorXd&
fn,
261 static int fwd_eeg_spherepot(
float *rd,
float *Q,
float **el,
int neeg, Eigen::VectorXf& Vval,
void *client);
310 static double one_step (
const Eigen::VectorXd&
mu,
const void *user_data);
forward library export/import macros.
FwdCoilSet class declaration.
FwdEegSphereLayer class declaration.
Forward modelling (BEM, MEG/EEG lead fields).
struct FWDLIB::fitUser fitUserRec
Collection of FwdCoil objects representing a full MEG or EEG sensor array.
Workspace for the linear least-squares fit of Berg-Scherg parameters in the EEG sphere model (SVD mat...
QList< FwdEegSphereLayer > layers
static double compute_linear_parameters(const Eigen::VectorXd &mu, Eigen::VectorXd &lambda, fitUser u)
QSharedPointer< FwdEegSphereModel > SPtr
static bool fwd_eeg_spherepot_vec(float *rd, float **el, int neeg, float **Vval_vec, void *client)
static int fwd_eeg_multi_spherepot_coil1(float *rd, float *Q, FwdCoilSet *els, float *Vval, void *client)
static int fwd_eeg_multi_spherepot(float *rd, float *Q, float **el, int neeg, float *Vval, void *client)
QSharedPointer< const FwdEegSphereModel > ConstSPtr
static FwdEegSphereModel * fwd_create_eeg_sphere_model(const QString &name, int nlayer, const Eigen::VectorXf &rads, const Eigen::VectorXf &sigmas)
static fitUser new_fit_user(int nfit, int nterms)
static void next_legen(int n, double x, double *p0, double *p01, double *p1, double *p11)
static int fwd_eeg_spherepot_coil_vec(float *rd, FwdCoilSet *els, float **Vval_vec, void *client)
bool fwd_eeg_fit_berg_scherg(int nterms, int nfit, float &rv)
static int fwd_eeg_spherepot_coil(float *rd, float *Q, FwdCoilSet *els, float *Vval, void *client)
static void compose_linear_fitting_data(const Eigen::VectorXd &mu, fitUser u)
static int fwd_eeg_spherepot(float *rd, float *Q, float **el, int neeg, Eigen::VectorXf &Vval, void *client)
static FwdEegSphereModel * setup_eeg_sphere_model(const QString &eeg_model_file, QString eeg_model_name, float eeg_sphere_rad)
static int fwd_eeg_spherepot_grad_coil(float *rd, float Q[], FwdCoilSet *coils, float Vval[], float xgrad[], float ygrad[], float zgrad[], void *client)
double fwd_eeg_get_multi_sphere_model_coeff(int n)
static void calc_pot_components(double beta, double cgamma, double *Vrp, double *Vtp, const Eigen::VectorXd &fn, int nterms)
bool fwd_setup_eeg_sphere_model(float rad, bool fit_berg_scherg, int nfit)
static double one_step(const Eigen::VectorXd &mu, const void *user_data)