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//=============================================================================================================
61{
62
63public:
64 typedef QSharedPointer<MNEEpochData> SPtr;
65 typedef QSharedPointer<const MNEEpochData> ConstSPtr;
66
67 //=========================================================================================================
72
73 //=========================================================================================================
79 MNEEpochData(const MNEEpochData &p_MNEEpochData);
80
81 //=========================================================================================================
86
87 //=========================================================================================================
93 void applyBaselineCorrection(const QPair<float,float>& baseline);
94
95 //=========================================================================================================
101 void pick_channels(const Eigen::RowVectorXi& sel);
102
103 //=========================================================================================================
111 friend bool operator== (const MNEEpochData &a, const MNEEpochData &b)
112 {
113 return (a.epoch == b.epoch &&
114 a.event == b.event&&
115 a.eventSample == b.eventSample &&
116 a.tmin == b.tmin&&
117 a.tmax == b.tmax&&
118 a.bReject == b.bReject &&
119 a.bUserReject == b.bUserReject);
120 }
121
122 //=========================================================================================================
130 inline bool isRejected(bool respectAutoReject = true) const
131 {
132 return bUserReject || (respectAutoReject && bReject);
133 }
134
135public:
136 Eigen::MatrixXd epoch;
137 FIFFLIB::fiff_int_t event;
138 FIFFLIB::fiff_int_t eventSample;
139 float tmin;
140 float tmax;
141 bool bReject;
143};
144} // NAMESPACE
145
146#endif // MNE_EPOCH_DATA_H
bool operator==(const BIDSPath &a, const BIDSPath &b)
MNELIB shared-library export/import macros and library build metadata.
#define MNESHARED_EXPORT
Definition mne_global.h:40
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
Core MNE data structures (source spaces, source estimates, hemispheres).
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
FIFFLIB::fiff_int_t eventSample
FIFFLIB::fiff_int_t event
QSharedPointer< const MNEEpochData > ConstSPtr