MNE-CPP  beta 1.0
mne_corsourceestimate.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef MNECORSOURCEESTIMATE_H
37 #define MNECORSOURCEESTIMATE_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "mne_global.h"
45 #include "mne_sourceestimate.h"
46 
47 
48 //*************************************************************************************************************
49 //=============================================================================================================
50 // Eigen INCLUDES
51 //=============================================================================================================
52 
53 #include <Eigen/SparseCore>
54 
55 
56 //*************************************************************************************************************
57 //=============================================================================================================
58 // Qt INCLUDES
59 //=============================================================================================================
60 
61 #include <QList>
62 #include <QIODevice>
63 
64 
65 //*************************************************************************************************************
66 //=============================================================================================================
67 // DEFINE NAMESPACE MNELIB
68 //=============================================================================================================
69 
70 namespace MNELIB
71 {
72 
73 
74 //*************************************************************************************************************
75 //=============================================================================================================
76 // USED NAMESPACES
77 //=============================================================================================================
78 
79 using namespace Eigen;
80 
81 
82 //*************************************************************************************************************
83 //=============================================================================================================
84 // FORWARD DECLARATIONS
85 //=============================================================================================================
86 
87 
88 
89 //=============================================================================================================
95 class MNESHARED_EXPORT MNECorSourceEstimate : public MNESourceEstimate
96 {
97 public:
98 
99  //=========================================================================================================
104 
105  //=========================================================================================================
114  MNECorSourceEstimate(const MatrixXd &p_sol, const VectorXi &p_vertices, float p_tmin, float p_tstep);
115 
116  //=========================================================================================================
122  MNECorSourceEstimate(const MNECorSourceEstimate& p_SourceEstimate);
123 
124  //=========================================================================================================
131  MNECorSourceEstimate(QIODevice &p_IODevice);
132 
133  //=========================================================================================================
137  void clear();
138 
139  //=========================================================================================================
150  static bool read(QIODevice &p_IODevice, MNECorSourceEstimate& p_stc);
151 
152  //=========================================================================================================
160  bool write(QIODevice &p_IODevice);
161 
162  //=========================================================================================================
170  MNECorSourceEstimate& operator= (const MNECorSourceEstimate &rhs);
171 
172 private:
173  SparseMatrix<float> m_matCorrelations;
175 };
176 
177 
178 //*************************************************************************************************************
179 //=============================================================================================================
180 // INLINE DEFINITIONS
181 //=============================================================================================================
182 
183 } //NAMESPACE
184 
185 #endif // MNECORSOURCEESTIMATE_H
Correlated source estimation.
MNESourceEstimate class declaration.