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
57{
58class FiffCoordTrans;
59}
60
61//=============================================================================================================
62// DEFINE NAMESPACE MNELIB
63//=============================================================================================================
64
65namespace MNELIB
66{
67
68//=============================================================================================================
69// MNELIB FORWARD DECLARATIONS
70//=============================================================================================================
71
73class MNEMeasDataSet;
74class MNENamedMatrix;
75
76//=============================================================================================================
87{
88public:
89 typedef QSharedPointer<MNEMeasData> SPtr;
90 typedef QSharedPointer<const MNEMeasData> ConstSPtr;
91
92 //=========================================================================================================
99
100 //=========================================================================================================
106 ~MNEMeasData();
107
108 //=========================================================================================================
120 void adjust_baselines(float bmin, float bmax);
121
122 //============================= mne_read_data.c =============================
123
141 static MNEMeasData* mne_read_meas_data_add(const QString& name,
142 int set,
145 const QStringList& namesp,
146 int nnamesp,
147 MNEMeasData* add_to);
148
162 static MNEMeasData* mne_read_meas_data(const QString& name,
163 int set,
166 const QStringList& namesp,
167 int nnamesp);
168
169public:
170 QString filename;
173 QList<FIFFLIB::FiffChInfo> chs;
174 std::unique_ptr<FIFFLIB::FiffCoordTrans> meg_head_t;
175 std::unique_ptr<FIFFLIB::FiffCoordTrans> mri_head_t;
176 float sfreq;
177 int nchan;
178 float highpass;
179 float lowpass;
180 std::unique_ptr<MNEProjOp> proj;
181 std::unique_ptr<MNECTFCompDataSet> comp;
184 std::unique_ptr<MNERawData> raw;
186 QStringList badlist;
187 int nbad;
188 Eigen::VectorXi bad;
189
190 bool ch_major;
191 QList<MNEMeasDataSet*> sets;
192 int nset;
194};
195
196//=============================================================================================================
197// INLINE DEFINITIONS
198//=============================================================================================================
199} // NAMESPACE MNELIB
200
201#endif // MNE_MEAS_DATA_H
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
Legacy MNE-C constants and shared typedefs used across MNELIB structures.
Legacy MNE-C raw-recording container with per-file buffer descriptors.
MNELIB shared-library export/import macros and library build metadata.
#define MNESHARED_EXPORT
Definition mne_global.h:40
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:69
FIFF time stamp: Unix seconds plus a microsecond fraction matching the on-disk fiffTimeRec record.
Definition fiff_time.h:52
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.