v2.0.0
Loading...
Searching...
No Matches
inv_pwl_rap_music.h
Go to the documentation of this file.
1//=============================================================================================================
35
36#ifndef INV_PWL_RAP_MUSIC_H
37#define INV_PWL_RAP_MUSIC_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../inv_global.h"
44#include "inv_rap_music.h"
45
46#include "inv_dipole.h"
47
50#include <time.h>
51
52#include <QVector>
53
54//=============================================================================================================
55// EIGEN INCLUDES
56//=============================================================================================================
57
58#include <Eigen/Core>
59#include <Eigen/SVD>
60#include <Eigen/LU>
61
62//=============================================================================================================
63// DEFINE NAMESPACE INVLIB
64//=============================================================================================================
65
66namespace INVLIB
67{
68
69//=============================================================================================================
70// SOME DEFINES
71//=============================================================================================================
72
73#define NOT_TRANSPOSED 0
74#define IS_TRANSPOSED 1
75
76//=============================================================================================================
83{
84public:
85
86 //=========================================================================================================
91
92 //=========================================================================================================
102 InvPwlRapMusic(MNELIB::MNEForwardSolution& p_pFwd, bool p_bSparsed, int p_iN = 2, double p_dThr = 0.5);
103
104 virtual ~InvPwlRapMusic();
105
106 //=========================================================================================================
117 virtual InvSourceEstimate calculateInverse(const FIFFLIB::FiffEvoked &p_fiffEvoked, bool pick_normal = false);
118
119 //=========================================================================================================
131 virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd &data, float tmin, float tstep) const;
132
133 virtual InvSourceEstimate calculateInverse(const Eigen::MatrixXd& p_matMeasurement, QList< InvDipolePair<double> > &p_RapDipoles) const;
134
135 static int PowellOffset(int p_iRow, int p_iNumPoints);
136
137 static void PowellIdxVec(int p_iRow, int p_iNumPoints, Eigen::VectorXi& p_pVecElements);
138
139 virtual const char* getName() const;
140};
141
142//=============================================================================================================
143// INLINE DEFINITIONS
144//=============================================================================================================
145} //NAMESPACE
146
147#endif // INV_PWL_RAP_MUSIC_H
InvSourceEstimate class declaration.
inverse library export/import macros.
#define INVSHARED_EXPORT
Definition inv_global.h:52
InvRapMusic algorithm class declaration.
InvDipole class declaration for RAP MUSIC dipole results.
MNEForwardSolution class declaration.
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
Pair of correlated dipole indices and orientations found by the RAP MUSIC scanning step.
Definition inv_dipole.h:59
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