v2.0.0
Loading...
Searching...
No Matches
mne_epoch_data.h
Go to the documentation of this file.
1//=============================================================================================================
23
24#ifndef MNE_EPOCH_DATA_H
25#define MNE_EPOCH_DATA_H
26
27//=============================================================================================================
28// INCLUDES
29//=============================================================================================================
30
31#include "mne_global.h"
32
33#include <fiff/fiff_types.h>
34
35//=============================================================================================================
36// QT INCLUDES
37//=============================================================================================================
38
39#include <QSharedPointer>
40
41//=============================================================================================================
42// EIGEN INCLUDES
43//=============================================================================================================
44
45#include <Eigen/Core>
46
47//=============================================================================================================
48// DEFINE NAMESPACE MNELIB
49//=============================================================================================================
50
51namespace MNELIB
52{
53
54//=============================================================================================================
63{
64public:
65 typedef QSharedPointer<MNEEpochData> SPtr;
66 typedef QSharedPointer<const MNEEpochData> ConstSPtr;
67
68 //=========================================================================================================
73
74 //=========================================================================================================
80 MNEEpochData(const MNEEpochData& p_MNEEpochData);
81
82 //=========================================================================================================
93 MNEEpochData& operator=(const MNEEpochData& other) = default;
94
95 //=========================================================================================================
100
101 //=========================================================================================================
107 void applyBaselineCorrection(const QPair<float, float>& baseline);
108
109 //=========================================================================================================
115 void pick_channels(const Eigen::RowVectorXi& sel);
116
117 //=========================================================================================================
125 friend bool operator==(const MNEEpochData& a, const MNEEpochData& b)
126 {
127 return (a.epoch == b.epoch &&
128 a.event == b.event &&
129 a.eventSample == b.eventSample &&
130 a.tmin == b.tmin &&
131 a.tmax == b.tmax &&
132 a.bReject == b.bReject &&
133 a.bUserReject == b.bUserReject);
134 }
135
136 //=========================================================================================================
144 inline bool isRejected(bool respectAutoReject = true) const
145 {
146 return bUserReject || (respectAutoReject && bReject);
147 }
148
149public:
150 Eigen::MatrixXd epoch;
153 float tmin;
154 float tmax;
155 bool bReject;
157};
158} // NAMESPACE
159
160#endif // MNE_EPOCH_DATA_H
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
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).
qint32 fiff_int_t
Definition fiff_types.h:86
void pick_channels(const Eigen::RowVectorXi &sel)
void applyBaselineCorrection(const QPair< float, float > &baseline)
bool isRejected(bool respectAutoReject=true) const
Eigen::MatrixXd epoch
QSharedPointer< MNEEpochData > SPtr
MNEEpochData & operator=(const MNEEpochData &other)=default
FIFFLIB::fiff_int_t eventSample
FIFFLIB::fiff_int_t event
QSharedPointer< const MNEEpochData > ConstSPtr
friend bool operator==(const MNEEpochData &a, const MNEEpochData &b)