Segments continuous raw data into fixed-length epochs locked to events. More...
#include <epoch_extractor.h>
Public Types | |
| using | Params = EpochExtractorParams |
Static Public Member Functions | |
| static QVector< MNELIB::MNEEpochData > | extract (const Eigen::MatrixXd &matData, const QVector< int > &eventSamples, double dSFreq, const Params ¶ms=Params(), const QVector< int > &eventCodes=QVector< int >()) |
| static Eigen::MatrixXd | average (const QVector< MNELIB::MNEEpochData > &epochs) |
| static QVector< MNELIB::MNEEpochData > | rejectMarked (const QVector< MNELIB::MNEEpochData > &epochs) |
Segments continuous raw data into fixed-length epochs locked to events.
Definition at line 105 of file epoch_extractor.h.
Convenience alias so callers can still write EpochExtractor::Params.
Definition at line 108 of file epoch_extractor.h.
|
static |
Compute the grand average (ERP/ERF) across all non-rejected epochs.
| [in] | epochs | Vector of extracted epochs (output of extract()). |
Definition at line 157 of file epoch_extractor.cpp.
|
static |
Extract epochs from a continuous raw data matrix.
For each event sample index the function:
Epochs whose window extends outside the data boundaries are silently skipped.
| [in] | matData | Continuous raw data (n_channels × n_samples), calibrated (SI units). |
| [in] | eventSamples | 0-based sample indices of events. |
| [in] | dSFreq | Sampling frequency in Hz. |
| [in] | params | Extraction parameters. |
| [in] | eventCodes | Optional per-event integer codes stored in MNEEpochData::event. Must be empty or the same length as eventSamples. |
Definition at line 84 of file epoch_extractor.cpp.
|
static |
Return only the epochs that are NOT marked for rejection.
| [in] | epochs | Input epoch vector. |
Definition at line 182 of file epoch_extractor.cpp.