v2.0.0
Loading...
Searching...
No Matches
inv_pwl_rap_music.h
Go to the documentation of this file.
1//=============================================================================================================
20
21#ifndef INV_PWL_RAP_MUSIC_H
22#define INV_PWL_RAP_MUSIC_H
23
24//=============================================================================================================
25// INCLUDES
26//=============================================================================================================
27
28#include "../inv_global.h"
29#include "inv_rap_music.h"
30
31#include "inv_dipole.h"
32
35#include <time.h>
36
37#include <QVector>
38
39//=============================================================================================================
40// EIGEN INCLUDES
41//=============================================================================================================
42
43#include <Eigen/Core>
44#include <Eigen/SVD>
45#include <Eigen/LU>
46
47//=============================================================================================================
48// DEFINE NAMESPACE INVLIB
49//=============================================================================================================
50
51namespace INVLIB
52{
53
54//=============================================================================================================
63{
64public:
65 //=========================================================================================================
70
71 //=========================================================================================================
81 InvPwlRapMusic(MNELIB::MNEForwardSolution& p_pFwd, bool p_bSparsed, int p_iN = 2, double p_dThr = 0.5);
82
83 virtual ~InvPwlRapMusic();
84
85 //=========================================================================================================
96 virtual InvSourceEstimate calculateInverse(const FIFFLIB::FiffEvoked& p_fiffEvoked, bool pick_normal = false);
97
98 //=========================================================================================================
111 virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd& data, float tmin, float tstep, bool pick_normal = false) const;
112
113 virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd& p_matMeasurement, QList<InvDipolePair<double>>& p_RapDipoles) const;
114
115 static int PowellOffset(int p_iRow, int p_iNumPoints);
116
117 static void PowellIdxVec(int p_iRow, int p_iNumPoints, Eigen::VectorXi& p_pVecElements);
118
119 virtual const char* getName() const;
120};
121
122//=============================================================================================================
123// INLINE DEFINITIONS
124//=============================================================================================================
125} //NAMESPACE
126
127#endif // INV_PWL_RAP_MUSIC_H
Templated dipole and dipole-pair value types used by the RAP-MUSIC scanning algorithm.
Recursively Applied and Projected MUSIC (RAP-MUSIC) source-localisation algorithm.
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
Forward solution (gain matrix mapping source dipoles to sensor measurements).
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
Single averaged evoked response: time axis, data, baseline, channel info and averaging metadata.
Definition fiff_evoked.h:77
Source-space inverse-solution container with dense grid plus optional focal-dipole,...
Pair of correlated dipole indices and orientations found by the RAP MUSIC scanning step.
Definition inv_dipole.h:62
static int PowellOffset(int p_iRow, int p_iNumPoints)
virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd &data, float tmin, float tstep, bool pick_normal=false) const
virtual InvSourceEstimate calculateInverse(const FIFFLIB::FiffEvoked &p_fiffEvoked, bool pick_normal=false)
static void PowellIdxVec(int p_iRow, int p_iNumPoints, Eigen::VectorXi &p_pVecElements)
virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd &p_matMeasurement, QList< InvDipolePair< double > > &p_RapDipoles) const
virtual const char * getName() const
In-memory representation of an -fwd.fif forward solution.