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//=============================================================================================================
55// SOME DEFINES
56//=============================================================================================================
57
58#define NOT_TRANSPOSED 0
59#define IS_TRANSPOSED 1
60
61//=============================================================================================================
68{
69public:
70
71 //=========================================================================================================
76
77 //=========================================================================================================
87 InvPwlRapMusic(MNELIB::MNEForwardSolution& p_pFwd, bool p_bSparsed, int p_iN = 2, double p_dThr = 0.5);
88
89 virtual ~InvPwlRapMusic();
90
91 //=========================================================================================================
102 virtual InvSourceEstimate calculateInverse(const FIFFLIB::FiffEvoked &p_fiffEvoked, bool pick_normal = false);
103
104 //=========================================================================================================
116 virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd &data, float tmin, float tstep) const;
117
118 virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd& p_matMeasurement, QList< InvDipolePair<double> > &p_RapDipoles) const;
119
120 static int PowellOffset(int p_iRow, int p_iNumPoints);
121
122 static void PowellIdxVec(int p_iRow, int p_iNumPoints, Eigen::VectorXi& p_pVecElements);
123
124 virtual const char* getName() const;
125};
126
127//=============================================================================================================
128// INLINE DEFINITIONS
129//=============================================================================================================
130} //NAMESPACE
131
132#endif // INV_PWL_RAP_MUSIC_H
Forward solution (gain matrix mapping source dipoles to sensor measurements).
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
Recursively Applied and Projected MUSIC (RAP-MUSIC) source-localisation algorithm.
Templated dipole and dipole-pair value types used by the RAP-MUSIC scanning algorithm.
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:75
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:60
static int PowellOffset(int p_iRow, int p_iNumPoints)
virtual InvSourceEstimate calculateInverse(const FIFFLIB::FiffEvoked &p_fiffEvoked, bool pick_normal=false)
virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd &data, float tmin, float tstep) const
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.