MNE-CPP  0.1.9
A Framework for Electrophysiology
mne_ctf_comp_data.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef MNECTFCOMPDATA_H
38 #define MNECTFCOMPDATA_H
39 
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "../mne_global.h"
45 
46 #include "mne_named_matrix.h"
48 
49 //=============================================================================================================
50 // EIGEN INCLUDES
51 //=============================================================================================================
52 
53 #include <Eigen/Core>
54 
55 //=============================================================================================================
56 // QT INCLUDES
57 //=============================================================================================================
58 
59 #include <QSharedPointer>
60 #include <QList>
61 
62 //=============================================================================================================
63 // DEFINE NAMESPACE MNELIB
64 //=============================================================================================================
65 
66 namespace MNELIB
67 {
68 
69 //=============================================================================================================
70 // FORWARD DECLARATIONS
71 //=============================================================================================================
72 
73 //=============================================================================================================
80 {
81 public:
82  typedef QSharedPointer<MneCTFCompData> SPtr;
83  typedef QSharedPointer<const MneCTFCompData> ConstSPtr;
85  //=========================================================================================================
91 
92  //=========================================================================================================
97  MneCTFCompData(const MneCTFCompData& comp);
98 
99  //=========================================================================================================
104  ~MneCTFCompData();
105 
106  static int mne_calibrate_ctf_comp(MneCTFCompData* one,
107  const QList<FIFFLIB::FiffChInfo> &chs,
108  int nch,
109  int do_it);
110 
111 public:
112  int kind; /* The compensation kind (CTF) */
113  int mne_kind; /* Our kind */
114  int calibrated; /* Are the coefficients in the file calibrated already? */
115  MneNamedMatrix* data; /* The compensation data */
116  FIFFLIB::FiffSparseMatrix* presel; /* Apply this selector prior to compensation */
117  FIFFLIB::FiffSparseMatrix* postsel; /* Apply this selector after compensation */
118  float *presel_data; /* These are used for the intermediate results in the calculations */
119  float *comp_data;
120  float *postsel_data;
121 
123 //typedef struct {
124 // int kind; /* The compensation kind (CTF) */
125 // int mne_kind; /* Our kind */
126 // int calibrated; /* Are the coefficients in the file calibrated already? */
127 // MNELIB::MneNamedMatrix* data; /* The compensation data */
128 // MNELIB::FiffSparseMatrix* presel; /* Apply this selector prior to compensation */
129 // MNELIB::FiffSparseMatrix* postsel; /* Apply this selector after compensation */
130 // float *presel_data; /* These are used for the intermediate results in the calculations */
131 // float *comp_data;
132 // float *postsel_data;
133 //} *mneCTFcompData,mneCTFcompDataRec;
134 };
135 
136 //=============================================================================================================
137 // INLINE DEFINITIONS
138 //=============================================================================================================
139 } // NAMESPACE MNELIB
140 
141 #endif // MNECTFCOMPDATA_H
fiff_sparse_matrix.h
FiffSparseMatrix class declaration.
FIFFLIB::FiffSparseMatrix
Data associated with MNE computations for each mneMeasDataSet.
Definition: fiff_sparse_matrix.h:74
MNELIB::MneCTFCompData::ConstSPtr
QSharedPointer< const MneCTFCompData > ConstSPtr
Definition: mne_ctf_comp_data.h:83
MNESHARED_EXPORT
#define MNESHARED_EXPORT
Definition: mne_global.h:56
MNELIB::MneCTFCompData::SPtr
QSharedPointer< MneCTFCompData > SPtr
Definition: mne_ctf_comp_data.h:82
MNELIB::MneNamedMatrix
Matrix specification with a channel list.
Definition: mne_named_matrix.h:84
MNELIB::MneCTFCompData
One MNE CTF compensation description.
Definition: mne_ctf_comp_data.h:79
mne_named_matrix.h
MNE Named Matrix (MneNamedMatrix) class declaration.