v2.0.0
Loading...
Searching...
No Matches
mne_meas_data.h
Go to the documentation of this file.
1//=============================================================================================================
19
20#ifndef MNE_MEAS_DATA_H
21#define MNE_MEAS_DATA_H
22
23//=============================================================================================================
24// INCLUDES
25//=============================================================================================================
26
27#include "mne_global.h"
28#include <fiff/fiff_types.h>
29
30#include "mne_types.h"
31#include "mne_raw_data.h"
32
33//=============================================================================================================
34// EIGEN INCLUDES
35//=============================================================================================================
36
37#include <Eigen/Core>
38
39//=============================================================================================================
40// QT INCLUDES
41//=============================================================================================================
42
43#include <QSharedPointer>
44
45//=============================================================================================================
46// STL INCLUDES
47//=============================================================================================================
48
49#include <memory>
50#include <vector>
51
52//=============================================================================================================
53// FORWARD DECLARATIONS
54//=============================================================================================================
55
56namespace FIFFLIB { class FiffCoordTrans; }
57
58//=============================================================================================================
59// DEFINE NAMESPACE MNELIB
60//=============================================================================================================
61
62namespace MNELIB
63{
64
65//=============================================================================================================
66// MNELIB FORWARD DECLARATIONS
67//=============================================================================================================
68
70class MNEMeasDataSet;
71class MNENamedMatrix;
72
73//=============================================================================================================
82{
83public:
84 typedef QSharedPointer<MNEMeasData> SPtr;
85 typedef QSharedPointer<const MNEMeasData> ConstSPtr;
86
87 //=========================================================================================================
94
95 //=========================================================================================================
101 ~MNEMeasData();
102
103 //=========================================================================================================
115 void adjust_baselines(float bmin, float bmax);
116
117 //============================= mne_read_data.c =============================
118
136 static MNEMeasData* mne_read_meas_data_add(const QString& name,
137 int set,
140 const QStringList& namesp,
141 int nnamesp,
142 MNEMeasData* add_to);
143
157 static MNEMeasData* mne_read_meas_data(const QString& name,
158 int set,
161 const QStringList& namesp,
162 int nnamesp);
163
164public:
165 QString filename;
168 QList<FIFFLIB::FiffChInfo> chs;
169 std::unique_ptr<FIFFLIB::FiffCoordTrans> meg_head_t;
170 std::unique_ptr<FIFFLIB::FiffCoordTrans> mri_head_t;
171 float sfreq;
172 int nchan;
173 float highpass;
174 float lowpass;
175 std::unique_ptr<MNEProjOp> proj;
176 std::unique_ptr<MNECTFCompDataSet> comp;
179 std::unique_ptr<MNERawData> raw;
181 QStringList badlist;
182 int nbad;
183 Eigen::VectorXi bad;
184
185 bool ch_major;
186 QList<MNEMeasDataSet*> sets;
187 int nset;
189};
190
191//=============================================================================================================
192// INLINE DEFINITIONS
193//=============================================================================================================
194} // NAMESPACE MNELIB
195
196#endif // MNE_MEAS_DATA_H
MNELIB shared-library export/import macros and library build metadata.
#define MNESHARED_EXPORT
Definition mne_global.h:40
Legacy MNE-C constants and shared typedefs used across MNELIB structures.
Legacy MNE-C raw-recording container with per-file buffer descriptors.
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
Core MNE data structures (source spaces, source estimates, hemispheres).
MNEChSelection * mneChSelection
FIFF file I/O, in-memory data structures and high-level readers/writers.
Labelled 4x4 FIFF affine: source frame, destination frame, rotation, translation and cached inverse.
128-bit FIFF identifier: hardware machine ID plus creation time, stamped on every file and block.
Definition fiff_id.h:66
FIFF time stamp: Unix seconds plus a microsecond fraction matching the on-disk fiffTimeRec record.
Definition fiff_time.h:50
MNE-style inverse operator.
std::unique_ptr< MNERawData > raw
static MNEMeasData * mne_read_meas_data_add(const QString &name, int set, MNEInverseOperator *op, MNENamedMatrix *fwd, const QStringList &namesp, int nnamesp, MNEMeasData *add_to)
Read an evoked-response data set and append it to an existing container.
QSharedPointer< const MNEMeasData > ConstSPtr
MNEMeasDataSet * current
void adjust_baselines(float bmin, float bmax)
Adjust baseline offset of the current data set.
MNEInverseOperator * op
MNENamedMatrix * fwd
MNEMeasData()
Constructs an empty measurement data container.
FIFFLIB::FiffTime meas_date
QSharedPointer< MNEMeasData > SPtr
std::unique_ptr< FIFFLIB::FiffCoordTrans > meg_head_t
QList< MNEMeasDataSet * > sets
std::unique_ptr< MNECTFCompDataSet > comp
QList< FIFFLIB::FiffChInfo > chs
std::unique_ptr< FIFFLIB::FiffCoordTrans > mri_head_t
mneChSelection chsel
FIFFLIB::FiffId meas_id
std::unique_ptr< MNEProjOp > proj
Eigen::VectorXi bad
static MNEMeasData * mne_read_meas_data(const QString &name, int set, MNEInverseOperator *op, MNENamedMatrix *fwd, const QStringList &namesp, int nnamesp)
Read an evoked-response data set into a new container.
Single measurement epoch or average within MNEMeasData.
A dense matrix with named rows and columns.