MNE-CPP  beta 1.0
pwlrapmusic.h
Go to the documentation of this file.
1 //=============================================================================================================
35 #ifndef PWLRAPMUSIC_H
36 #define PWLRAPMUSIC_H
37 
38 //*************************************************************************************************************
39 //=============================================================================================================
40 // INCLUDES
41 //=============================================================================================================
42 
43 #include "../inverse_global.h"
44 #include "rapmusic.h"
45 
46 #include "dipole.h"
47 
49 #include <mne/mne_sourceestimate.h>
50 #include <time.h>
51 
52 #include <QVector>
53 
54 
55 
56 //*************************************************************************************************************
57 //=============================================================================================================
58 // EIGEN INCLUDES
59 //=============================================================================================================
60 
61 #include <Eigen/Core>
62 #include <Eigen/SVD>
63 #include <Eigen/LU>
64 
65 
66 //*************************************************************************************************************
67 //=============================================================================================================
68 // DEFINE NAMESPACE INVERSELIB
69 //=============================================================================================================
70 
71 namespace INVERSELIB
72 {
73 
74 //*************************************************************************************************************
75 //=============================================================================================================
76 // USED NAMESPACES
77 //=============================================================================================================
78 
79 using namespace MNELIB;
80 
81 
82 //*************************************************************************************************************
83 //=============================================================================================================
84 // SOME DEFINES
85 //=============================================================================================================
86 
87 #define NOT_TRANSPOSED 0
88 #define IS_TRANSPOSED 1
90 //=============================================================================================================
91 
97 {
98 public:
99 
100  //=========================================================================================================
104  PwlRapMusic();
105 
106  //=========================================================================================================
116  PwlRapMusic(MNEForwardSolution& p_pFwd, bool p_bSparsed, int p_iN = 2, double p_dThr = 0.5);
117 
118  virtual ~PwlRapMusic();
119 
120  //=========================================================================================================
131  virtual MNESourceEstimate calculateInverse(const FiffEvoked &p_fiffEvoked, bool pick_normal = false);
132 
133  //=========================================================================================================
145  virtual MNESourceEstimate calculateInverse(const MatrixXd &data, float tmin, float tstep) const;
146 
147  virtual MNESourceEstimate calculateInverse(const MatrixXd& p_matMeasurement, QList< DipolePair<double> > &p_RapDipoles) const;
148 
149  static int PowellOffset(int p_iRow, int p_iNumPoints);
150 
151  static void PowellIdxVec(int p_iRow, int p_iNumPoints, Eigen::VectorXi& p_pVecElements);
152 
153  virtual const char* getName() const;
154 
155 };
156 
157 //*************************************************************************************************************
158 //=============================================================================================================
159 // INLINE DEFINITIONS
160 //=============================================================================================================
161 
162 } //NAMESPACE
163 
164 #endif // PWLRAPMUSIC_H
evoked data
Definition: fiff_evoked.h:91
ToDo Documentation...
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
#define INVERSESHARED_EXPORT
RapMusic algorithm class declaration.
MNESourceEstimate class declaration.
The RapMusic class provides the RAP MUSIC Algorithm CPU implementation. ToDo: Paper references...
Definition: rapmusic.h:109
The PwlRapMusic class provides the POWELL RAP MUSIC Algorithm CPU implementation. ToDo: Paper referen...
Definition: pwlrapmusic.h:96