v2.0.0
Loading...
Searching...
No Matches
epoch_extractor.h
Go to the documentation of this file.
1//=============================================================================================================
41
42#ifndef EPOCH_EXTRACTOR_DSP_H
43#define EPOCH_EXTRACTOR_DSP_H
44
45//=============================================================================================================
46// INCLUDES
47//=============================================================================================================
48
49#include "dsp_global.h"
50
51#include <mne/mne_epoch_data.h>
52
53//=============================================================================================================
54// EIGEN INCLUDES
55//=============================================================================================================
56
57#include <Eigen/Core>
58
59//=============================================================================================================
60// QT INCLUDES
61//=============================================================================================================
62
63#include <QVector>
64
65//=============================================================================================================
66// DEFINE NAMESPACE UTILSLIB
67//=============================================================================================================
68
69namespace UTILSLIB
70{
71
72//=============================================================================================================
75{
76 double dTmin = -0.2;
77 double dTmax = 0.5;
78 double dBaseMin = -0.2;
79 double dBaseMax = 0.0;
80 double dThreshold = 0.0;
82 bool bApplyBaseline = true;
83};
84
85//=============================================================================================================
106{
107public:
109
110 //=========================================================================================================
131 static QVector<MNELIB::MNEEpochData> extract(const Eigen::MatrixXd& matData,
132 const QVector<int>& eventSamples,
133 double dSFreq,
134 const Params& params = Params(),
135 const QVector<int>& eventCodes = QVector<int>());
136
137 //=========================================================================================================
145 static Eigen::MatrixXd average(const QVector<MNELIB::MNEEpochData>& epochs);
146
147 //=========================================================================================================
155 static QVector<MNELIB::MNEEpochData> rejectMarked(const QVector<MNELIB::MNEEpochData>& epochs);
156
157private:
158 //=========================================================================================================
169 static void applyBaseline(Eigen::MatrixXd& matEpoch, int iBase0, int iBase1);
170};
171
172} // namespace UTILSLIB
173
174#endif // EPOCH_EXTRACTOR_DSP_H
dsp library export/import macros.
#define DSPSHARED_EXPORT
Definition dsp_global.h:56
MNEEpochData class declaration.
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
Epoch extraction parameters (defined outside class to avoid Clang/GCC default-argument issues with ne...
Segments continuous raw data into fixed-length epochs locked to events.
static QVector< MNELIB::MNEEpochData > rejectMarked(const QVector< MNELIB::MNEEpochData > &epochs)
static QVector< MNELIB::MNEEpochData > extract(const Eigen::MatrixXd &matData, const QVector< int > &eventSamples, double dSFreq, const Params &params=Params(), const QVector< int > &eventCodes=QVector< int >())
EpochExtractorParams Params
static Eigen::MatrixXd average(const QVector< MNELIB::MNEEpochData > &epochs)