Free / static helpers that turn a FiffRawData plus an event list into fixed-length epochs. More...
#include <fiff_epochs.h>
Static Public Member Functions | |
| static QList< FiffEpochData > | makeFixedLengthEpochs (const Eigen::MatrixXd &matData, double dSFreq, double dDuration, double dOverlap=0.0, bool bDropLast=true) |
| Create fixed-length epochs from continuous data. | |
| static QList< FiffEpochData > | concatenateEpochs (const QList< QList< FiffEpochData > > &epochSets) |
| Concatenate multiple epoch sets into a single list. | |
| static FiffEvoked | averageEpochs (const QList< FiffEpochData > &epochs, double dSFreq, const QString &comment="Average") |
| Compute the average (evoked response) across epochs. | |
| static QList< Eigen::MatrixXd > | toMatrixList (const QList< FiffEpochData > &epochs) |
| Extract data matrices from epoch structures. | |
Free / static helpers that turn a FiffRawData plus an event list into fixed-length epochs.
Stateless — operates on the FiffRawData and event arguments directly. Used by the source-reconstruction pipeline and by the offline averaging tooling when building epochs for an FiffEvokedSet.
Definition at line 75 of file fiff_epochs.h.
|
static |
Compute the average (evoked response) across epochs.
All epochs must have the same dimensions. Returns a FiffEvoked with data, nave, times, and aspect_kind populated.
| [in] | epochs | List of epochs. |
| [in] | dSFreq | Sampling frequency in Hz (used to compute times vector). |
| [in] | comment | Comment string for the evoked (default "Average"). |
Definition at line 110 of file fiff_epochs.cpp.
|
static |
Concatenate multiple epoch sets into a single list.
| [in] | epochSets | List of epoch sets to concatenate. |
Definition at line 98 of file fiff_epochs.cpp.
|
static |
Create fixed-length epochs from continuous data.
Segments the data matrix into non-overlapping (or overlapping) epochs of the specified duration.
| [in] | matData | Continuous data (n_channels × n_times). |
| [in] | dSFreq | Sampling frequency in Hz. |
| [in] | dDuration | Epoch duration in seconds. |
| [in] | dOverlap | Overlap between epochs in seconds (default 0.0). |
| [in] | bDropLast | Drop the last epoch if it's shorter than duration (default true). |
Definition at line 47 of file fiff_epochs.cpp.
|
static |
Extract data matrices from epoch structures.
Convenience method to get a list of data matrices from epoch structures, suitable for use with CSP, SPoC, SSD, etc.
| [in] | epochs | List of epoch data. |
Definition at line 158 of file fiff_epochs.cpp.