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//=============================================================================================================
70{
71public:
72 //=========================================================================================================
77
78 //=========================================================================================================
88 InvPwlRapMusic(MNELIB::MNEForwardSolution& p_pFwd, bool p_bSparsed, int p_iN = 2, double p_dThr = 0.5);
89
90 virtual ~InvPwlRapMusic();
91
92 //=========================================================================================================
103 virtual InvSourceEstimate calculateInverse(const FIFFLIB::FiffEvoked& p_fiffEvoked, bool pick_normal = false);
104
105 //=========================================================================================================
118 virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd& data, float tmin, float tstep, bool pick_normal = false) const;
119
120 virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd& p_matMeasurement, QList<InvDipolePair<double>>& p_RapDipoles) const;
121
122 static int PowellOffset(int p_iRow, int p_iNumPoints);
123
124 static void PowellIdxVec(int p_iRow, int p_iNumPoints, Eigen::VectorXi& p_pVecElements);
125
126 virtual const char* getName() const;
127};
128
129//=============================================================================================================
130// INLINE DEFINITIONS
131//=============================================================================================================
132} //NAMESPACE
133
134#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.