MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
mne_epoch_data.h
Go to the documentation of this file.
1//=============================================================================================================
37#ifndef MNE_EPOCH_DATA_H
38#define MNE_EPOCH_DATA_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "mne_global.h"
45
46#include <fiff/fiff_types.h>
47
48//=============================================================================================================
49// QT INCLUDES
50//=============================================================================================================
51
52#include <QSharedPointer>
53
54//=============================================================================================================
55// EIGEN INCLUDES
56//=============================================================================================================
57
58#include <Eigen/Core>
59
60//=============================================================================================================
61// DEFINE NAMESPACE MNELIB
62//=============================================================================================================
63
64namespace MNELIB
65{
66
67//=============================================================================================================
74{
75
76public:
77 typedef QSharedPointer<MNEEpochData> SPtr;
78 typedef QSharedPointer<const MNEEpochData> ConstSPtr;
80 //=========================================================================================================
85
86 //=========================================================================================================
92 MNEEpochData(const MNEEpochData &p_MNEEpochData);
93
94 //=========================================================================================================
99
100 //=========================================================================================================
106 void applyBaselineCorrection(const QPair<float,float>& baseline);
107
108 //=========================================================================================================
114 void pick_channels(const Eigen::RowVectorXi& sel);
115
116 //=========================================================================================================
124 friend bool operator== (const MNEEpochData &a, const MNEEpochData &b)
125 {
126 return (a.epoch == b.epoch &&
127 a.event == b.event&&
128 a.tmin == b.tmin&&
129 a.tmax == b.tmax&&
130 a.bReject == b.bReject);
131 }
132
133public:
134 Eigen::MatrixXd epoch;
135 FIFFLIB::fiff_int_t event;
136 float tmin;
137 float tmax;
138 bool bReject;
139};
140} // NAMESPACE
141
142#endif // MNE_EPOCH_DATA_H
Definitions for describing the objects in a FIFF file.
mne library export/import macros.
#define MNESHARED_EXPORT
Definition mne_global.h:56
Eigen::MatrixXd epoch
QSharedPointer< MNEEpochData > SPtr
FIFFLIB::fiff_int_t event
QSharedPointer< const MNEEpochData > ConstSPtr