Skip to main content

EpochExtractorParams

Namespace: UTILSLIB  ·  Library: Utilities Library

#include <utils/epoch_extractor.h>

struct UTILSLIB::EpochExtractorParams

Epoch extraction parameters (defined outside class to avoid Clang/GCC default-argument issues with nested structs).

src/examples/ex_dsp_preprocessing/main.cpp
EpochExtractor::Params params;
params.dTmin = -0.1;
params.dTmax = 0.4;
params.dBaseMin = -0.1;
params.dBaseMax = 0.0;
const QVector<MNEEpochData> epochs = EpochExtractor::extract(raw, events, kSFreq, params, codes);
QVector<MNEEpochData> targets;
for (const MNEEpochData& epoch : epochs) {
if (epoch.event == 1) {
targets.append(epoch);
}
}
const MatrixXd evoked = EpochExtractor::average(EpochExtractor::rejectMarked(targets));

Example​

Authors of this file​