EpochExtractor
Namespace: UTILSLIB · Library: Utilities Library
#include <utils/epoch_extractor.h>
class UTILSLIB::EpochExtractor
Segments continuous raw data into fixed-length epochs locked to events.
EpochExtractor::Params p;
p.dTmin = -0.2; // 200 ms pre-stimulus
p.dTmax = 0.8; // 800 ms post-stimulus
p.dBaseMin = -0.2;
p.dBaseMax = 0.0;
p.dThreshold = 150e-6; // 150 µV peak-to-peak rejection
QVector<MNELIB::MNEEpochData> epochs =
EpochExtractor::extract(matRawData, eventSamples, sFreq, p);
// Good epochs only
QVector<MNELIB::MNEEpochData> clean =
EpochExtractor::rejectMarked(epochs);